• 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: Do IMPs move once they're loaded?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do IMPs move once they're loaded?


  • Subject: Re: Do IMPs move once they're loaded?
  • From: mmalcolm crawford <email@hidden>
  • Date: Sat, 29 Jan 2005 19:11:23 -0800


On Jan 29, 2005, at 6:25 PM, Ken Tozier wrote:

Once it's in memory, yes. But the dilemma was how to store a selector along with the data the selector operates on to disk when the selector itself isn't a fixed length and Apple doesn't guarantee identical hash values for the identical strings between OS releases.
At any rate, I got it working now. I wrote my own hashing function (which I won't change between OS releases), store the selector strings in an NSDictionary in the "initialize" method, and resolve them as needed with NSSelectorFromString

Perhaps NSInvocation would be more appropriate?
<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/Classes/NSInvocation.html>
(Note that it conforms to NSCoding, and instances can be put in arrays and dictionaries.)


mmalc


_______________________________________________ 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
  • Follow-Ups:
    • Re: Do IMPs move once they're loaded?
      • From: Brendan Younger <email@hidden>
References: 
 >Do IMPs move once they're loaded? (From: Ken Tozier <email@hidden>)
 >Re: Do IMPs move once they're loaded? (From: Sherm Pendley <email@hidden>)
 >Re: Do IMPs move once they're loaded? (From: Ken Tozier <email@hidden>)
 >Re: Do IMPs move once they're loaded? (From: Bob Ippolito <email@hidden>)
 >Re: Do IMPs move once they're loaded? (From: Ken Tozier <email@hidden>)

  • Prev by Date: default nib on document based apps
  • Next by Date: Re: Default Nib on Document based apps
  • Previous by thread: Re: Do IMPs move once they're loaded?
  • Next by thread: Re: Do IMPs move once they're loaded?
  • Index(es):
    • Date
    • Thread