• 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
NSTableView setDatasource doesn't retain the source?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView setDatasource doesn't retain the source?


  • Subject: NSTableView setDatasource doesn't retain the source?
  • From: Allan Odgaard <email@hidden>
  • Date: Tue, 5 Feb 2002 07:52:40 +0100

Maybe I'm doing something wrong but:

If I call autorelease on the datasource before I hand it over to NSTableView's setDatasource selector, then my program "crash" the second time the TableView needs to redraw itself.

I tried to NSLog(@"Ref count: %d", [myDatasource retainCount]) before and after handing over the object, and it didn't change.


  • Prev by Date: Re: NSTableColumn.identifier()
  • Next by Date: Re: Thousands of colors
  • Previous by thread: Re: IB trashed my Nibs!
  • Next by thread: Re: Abstract objects (Newbie)
  • Index(es):
    • Date
    • Thread