• 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: Couple of questions about the "SEL" datatype
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Couple of questions about the "SEL" datatype


  • Subject: Re: Couple of questions about the "SEL" datatype
  • From: Evan Schoenberg <email@hidden>
  • Date: Sun, 23 Jan 2005 15:56:06 -0600

While perhaps you could make this work, I'd recommend storing the selector as an NSString using NSStringFromSelector() and then restoring it from the string using NSSelectorFromString().

-Evan

On Jan 23, 2005, at 2:51 PM, Ken Tozier wrote:

Is the SEL datatype fixed in size?

I read the documentation here "http://developer.apple.com/documentation/Cocoa/Reference/ ObjCRuntimeRef/ObjCRuntimeRef/datatype_group_1.html#//apple_ref/doc/ uid/20001426/BAJDFBFC" and here "http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/ LanguageOverview/chapter_3_section_6.html" but it doesn't seem to say whether it's fixed in size or not.

Is the SEL datatype savable? Meaning could you get a method selector using @selector(methodName), save the result to disk, reread it into another SEL variable and run it with performSelector...?

Thanks

Ken

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Couple of questions about the "SEL" datatype (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: Manual binding questions.
  • Next by Date: Getting file contents as a hex string
  • Previous by thread: Re: Couple of questions about the "SEL" datatype
  • Next by thread: Re: Couple of questions about the "SEL" datatype
  • Index(es):
    • Date
    • Thread