On Oct 28, 2012, at 1:37 AM, Kyle Sluder <k...@ksluder.com> wrote:

>> In general, initialization code like this in a nib-loaded object should go 
>> into its -awakeFromNib method, which is [almost] guaranteed to be the first 
>> method invoked on that object.
> 
> Actually, the NSTableView docs explicitly warn that this is not the case:

That’s why I said “[almost]”. :)

> Initialize your instance variable in -init, which *is* guaranteed to be the 
> first method called on your object.

I didn’t think init methods were called for objects loaded from nibs? (It’s 
possible this may have changed over time, though, since the old days when I 
learned Cocoa coding on the street from Buggsy and Leroy.)

—Jens
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to