• 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
Don't understand NSBrowser's setReusesColumns:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Don't understand NSBrowser's setReusesColumns:


  • Subject: Don't understand NSBrowser's setReusesColumns:
  • From: Philip White <email@hidden>
  • Date: Tue, 29 Sep 2009 20:02:04 -0500

Hello,
I posted a question a few days ago about the NSBrowser delegate method:


- (void)browser:(NSBrowser *)sender createRowsForColumn:(NSInteger) column inMatrix:(NSMatrix *)matrix

I was having problems where this was getting called with the matrix argument equal to nil. I ended up finding out that this only happens when I have the NSBrowser set up to reuse columns (by calling setReusesColumns:).
Would someone explain to me exactly why enabling that setting causes this behavior? If you have this set are you expected to keep the matrix from the first time it is passed to your delegate.?If so why doesn't it just get passed again for convenience's sake?


Thanks for your time,
 Philip White

P.S. Unless I'm mistaken (that's not unheard of), this behavior was not present under Leopard, just Snow Leopard.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Prev by Date: Re: Some more questions on NSOpenPanel
  • Next by Date: Re: Fast transition between two graphics
  • Previous by thread: Re: Static Analyzer Question
  • Next by thread: [SOLVED] (again) How to observe every child entity
  • Index(es):
    • Date
    • Thread