• 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: Custom View initialization: where?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom View initialization: where?


  • Subject: Re: Custom View initialization: where?
  • From: Graham Cox <email@hidden>
  • Date: Sat, 3 May 2008 12:11:13 +1000

Sounds OK - so post your code. The documentation is correct.

G.


On 3 May 2008, at 12:05 pm, Markus Spoettl wrote:

Following the "View Programming Guide for Cocoa" if I use a Custom- View proxy in IB, the view's initWithFrame: method will be called when the NIB is loaded (this can be found in "Initializing View Instances Created in Interface Builder").

I do have a custom NSView derived view and a simple window with one proxy custom view in it. The class name is set to my view's class, but the initializer does not get called. awakeFromNib: is called, though.

Is this a documentation error or is there something I have to do before the dedicated initializer is getting called by the framework? My view has a couple of objects it has to allocate, the initializer being the best place.

I'm using Xcode 3.0 on 10.5.2

Regards
Markus
--
__________________________________________
Markus Spoettl

_______________________________________________

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

_______________________________________________

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


  • Follow-Ups:
    • Re: Custom View initialization: where?
      • From: Markus Spoettl <email@hidden>
References: 
 >Custom View initialization: where? (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Custom View initialization: where?
  • Next by Date: Re: Graphics seen when volume is modified.
  • Previous by thread: Custom View initialization: where?
  • Next by thread: Re: Custom View initialization: where?
  • Index(es):
    • Date
    • Thread