• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What replaces the (now deprecated) NSObjCValueType?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What replaces the (now deprecated) NSObjCValueType?


  • Subject: Re: What replaces the (now deprecated) NSObjCValueType?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 16 Sep 2009 22:33:50 +0200


Le 16 sept. 2009 à 10:09, Todd Blanchard a écrit :

NSMethodSignature has methods:

- (const char *)getArgumentTypeAtIndex:(NSUInteger)idx;
- (const char *)methodReturnType;

So apparently the runtime is using strings to denote types instead of the now deprecated NSObjCValueType.

So where is the modern definition of which string maps to which type? I'm updating ObjectiveCLIPS and I need to be able to map types between the CLIPS and ObjectiveC environments and this is how I was doing it before they were deprecated.


The easiest way for you is probably to use the @encode directive

But if you really want to hard code type mapping, this may help:

http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtTypeEncodings.html#//apple_ref/doc/uid/TP40008048-CH100-SW1


-- Jean-Daniel




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >What replaces the (now deprecated) NSObjCValueType? (From: Todd Blanchard <email@hidden>)

  • Prev by Date: Re: NSString vs. encoding
  • Next by Date: Re: NSString vs. encoding
  • Previous by thread: What replaces the (now deprecated) NSObjCValueType?
  • Next by thread: 10.6 :- Problems with mounted network volume path.
  • Index(es):
    • Date
    • Thread