• 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: Why isn't my NSOutlineView subclass working?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why isn't my NSOutlineView subclass working?


  • Subject: Re: Why isn't my NSOutlineView subclass working?
  • From: Chris Hanson <email@hidden>
  • Date: Fri, 22 Aug 2003 20:23:51 -0500

This is happening because when your NSOutlineView subclass is instantiated during nib loading, it's actually instantiated via NSCoding (i.e. -initWithCoder:). This is likely the reason both your -initWithFrame: and -addTableColumn: methods aren't being invoked.

Only custom views -- the big empty grey rectangle -- are initialized with -initWithFrame:.

Nib loading consists of instantiating an object graph via NSCoding, plus some additional magic to wire things up.

-- Chris

--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Mac OS X Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
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: 
 >Why isn't my NSOutlineView subclass working? (From: Kevin Smith <email@hidden>)

  • Prev by Date: Disable command-shift-q & command-shift-option-q
  • Next by Date: NSForm behavior
  • Previous by thread: Why isn't my NSOutlineView subclass working?
  • Next by thread: Which class for Offline Bitmap
  • Index(es):
    • Date
    • Thread