Allocation during awakeFromNib
Allocation during awakeFromNib
- Subject: Allocation during awakeFromNib
- From: Darrin Cardani <email@hidden>
- Date: Fri, 2 Jan 2004 10:44:00 -0600
I have a subclass of NSMovieView. In the subclass I need to allocate
an NSMutableArray during initialization. Normally, I'd do the
allocation in one of the init methods, but it doesn't appear that any
of the init methods get called. (I've overridden -initWithFrame: and
-init, and neither is ever called.) The problem is that -awakeFromNib
returns void, rather than id, so I can't return NULL if the
allocation fails.
So what is the proper thing to do here? Is there an appropriate
exception I can raise for this? Or is there somewhere else I should
be doing this allocation?
Thanks,
Darrin
--
Darrin Cardani - email@hidden
President, Buena Software, Inc.
<
http://www.buena.com/>
Video, Image and Audio Processing Development
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.