• 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: Markus Spoettl <email@hidden>
  • Date: Fri, 2 May 2008 20:33:41 -0700

On May 2, 2008, at 8:23 PM, Quincey Morris wrote:
I don't know why initWithFrame: isn't being called in your case, but someone from Apple did say on this list a few weeks ago that an initializer *is* always called. If it's not initWithFrame:, it will be initWithCoder:.

Presumably that is getting called, and you could put the object allocations in there.


Turns out it's my fault (I suspected as much). What I did was the following:

I had one window with a custom view on it. Instead of setting the class of the custom view I set the class if the window's content view. I didn't realize it because the view painted correctly. I should have been more careful, sorry for wasting your time.

The initializer is not getting called correctly.

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


References: 
 >Custom View initialization: where? (From: Markus Spoettl <email@hidden>)
 >Re: Custom View initialization: where? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Custom View initialization: where?
  • Next by Date: Re: drawing in a separate thread
  • Previous by thread: Re: Custom View initialization: where?
  • Next by thread: Mail type in-line objects
  • Index(es):
    • Date
    • Thread