• 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: Table data not initializing [Solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Table data not initializing [Solved]


  • Subject: Re: Table data not initializing [Solved]
  • From: Ken Tozier <email@hidden>
  • Date: Mon, 26 Apr 2004 19:44:05 -0400

is this a document based application?

No. It's a sort of like AppleScript's "folder actions" scripting addition on steroids. The nib is an independent "preference" window launched by a menu command.


If it is, then windowControllerDidLoadNib: is the place to do it. otherwise awakeFromNib is a good place.

Thanks.

Ken



On Apr 26, 2004, at 6:29 PM, Ken Tozier wrote:

I was following an example from the book "Cocoa programming for Max OS
X" by Aaron Hillegass which initialized it's tableView data source
inside the "windowDidLoad" method. On a whim I put the init code inside
"awakeFromNib" and it worked.

I'm happy it works now but am wondering why code from someone with as
much experience as Aaron Hillegass didn't work. Is there some reason
NOT to put data source initialization inside "windowDidLoad"?

Ken
_______________________________________________
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.


  • Prev by Date: Re: Table data not initializing [Solved]
  • Next by Date: Re: Standard User Defaults - Setting initial values
  • Previous by thread: Re: Table data not initializing [Solved]
  • Next by thread: NSOutlineView with NSControl components
  • Index(es):
    • Date
    • Thread