• 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
NSBrowser's reloadColumn: question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSBrowser's reloadColumn: question


  • Subject: NSBrowser's reloadColumn: question
  • From: Anup Murarka <email@hidden>
  • Date: Sat, 28 Sep 2002 21:32:25 -0700

I'm curious if anyone has experience with reloadColumn: from NSBrowser?

I have a single column list of hardware devices in a selector window
(originally from one of the Firewire SDK examples).

The Browser's cells are loaded in my delegate's
browser:willDisplayCell:atRow:column: method by [cell
setRepresentedObject:lun].

The delegate calls reloadColumn:0 when it gets a notification that a device
has been removed.

If there was only one object in the list, the list now is empty and the
delegate returns 0 in browser:numberOfRowsInColum:.

The cells for the Browser don't release their retained objects as the
NSBrowser class seems to simply clear the titles. When a new object is
added, the old cached object is released and the new one is retained.

If I use loadColumn: instead of reloadColumn:0, the cells immediately
release their objects.

I would have though loadColumnZero: and reloadColumn:0 to have displayed the
same behavior in this example.

What do the folks here on the list think?


Thanks,
anup
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSBrowser's reloadColumn: question
      • From: James DiPalma <email@hidden>
  • Prev by Date: DateFormatter in a table?
  • Next by Date: Re: [NEWBIE QUESTION] What message is sent when window contents finish loading?
  • Previous by thread: Re: DateFormatter in a table?
  • Next by thread: Re: NSBrowser's reloadColumn: question
  • Index(es):
    • Date
    • Thread