Re: Storing bundle loaded main class instances in NSArray
Re: Storing bundle loaded main class instances in NSArray
- Subject: Re: Storing bundle loaded main class instances in NSArray
- From: Graham Cox <email@hidden>
- Date: Wed, 8 Apr 2009 22:53:59 +1000
On 08/04/2009, at 10:33 PM, Daniel Luis dos Santos wrote:
if ((nil != saID) && ([[saID class] isSubclassOfClass: [NSData
class]])) {
//[_instances addObject: aDriverInstance];
When I uncomment the addObject line above, later in the code
NSFileManager throws a doesNotRespondToSelector exception, which is
very odd.
Still not enough to go on.
Where is _instances initialised? Is it released anywhere? What does
the exception log? Is it possible _instances could be being released
leaving a stale pointer that points to NSFileManager? Have you run it
with NSZombieEnabled turned on? Any difference?
Please post the *relevant* code.
--Graham
_______________________________________________
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