• 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: Problems with tabbing between custom text fields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with tabbing between custom text fields


  • Subject: Re: Problems with tabbing between custom text fields
  • From: Allan Odgaard <email@hidden>
  • Date: Sun, 21 Mar 2004 16:21:34 +0100

On 21. Mar 2004, at 16:02, Alex Penner wrote:

I've initially tried to initialize my field in initWithFrame: - that caused SIG11 for me. You did that in initWithCoder. What is a difference here?

initWithCoder: is the initializer used when objects are 'de-serialized', i.e. read from the Nib created by Interface Builder.

There is a FAQ entry about it somewhere in the IB documentation, basically it calls initWithCoder: for all objects except custom view subclasses, these receive the initWithFrame: IIRC (and probably NSObject subclasses you instantiate, which just gets a normal init) -- they recommend placing init code in awakeFromNib, as that message is always sent to the object, and is sent after all other setup (like creating connections between objects).
_______________________________________________
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.


References: 
 >Problems with tabbing between custom text fields (From: Alex Penner <email@hidden>)
 >Re: Problems with tabbing between custom text fields (From: Allan Odgaard <email@hidden>)
 >Re: Problems with tabbing between custom text fields (From: Alex Penner <email@hidden>)
 >Re: Problems with tabbing between custom text fields (From: Allan Odgaard <email@hidden>)
 >Re: Problems with tabbing between custom text fields (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: cocoa blogs?
  • Next by Date: Re: NSMutableArray problems
  • Previous by thread: Re: Problems with tabbing between custom text fields
  • Next by thread: How about assembling and posting "Frequently Asked Questions"
  • Index(es):
    • Date
    • Thread