• 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
Allocation during awakeFromNib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Allocation during awakeFromNib
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: handling of huge bitmaps, incremental saving?
  • Next by Date: Re: Encryption
  • Previous by thread: Re: Double-Click Column Header??
  • Next by thread: Re: Allocation during awakeFromNib
  • Index(es):
    • Date
    • Thread