objectForKey:self
objectForKey:self
- Subject: objectForKey:self
- From: Jonathan del Strother <email@hidden>
- Date: Mon, 26 Jun 2006 13:05:22 +0100
I've created a SIMBL hack that uses poseAsClass to swap in my own
subclass of Safari's BrowserWindow class. Because poseAsClass
doesn't allow you to add your own instance variables, I've stored
them in a global NSDictionary.
The instance variables are then looked up by using the instance
pointer as the key. Here's the strange part - I was using
objectForKey:self, and it worked fine on my Powerbook, but seemed to
break everywhere else. Replacing that with objectForKey:[NSNumber
numberWithInt:self] seems to work fine, regardless of the environment.
Can anyone explain why objectForKey:self works in some places but not
others?
Jon
_______________________________________________
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