Re: NSTableView doesn't show data until I click on a header
Re: NSTableView doesn't show data until I click on a header
- Subject: Re: NSTableView doesn't show data until I click on a header
- From: Roland King <email@hidden>
- Date: Thu, 03 May 2012 18:45:20 +0800
On May 3, 2012, at 6:33 PM, Koen van der Drift wrote:
> On Wed, May 2, 2012 at 10:15 PM, Koen van der Drift
> <email@hidden> wrote:
>> Got it, it all works (I think :).
>>
>> The only thing that made me scratch my head was how to empty the whole
>> array.
>
> I am of course aware of [myArray removeAllObjects], but is that KVO
> compliant? I couldn't find that in the docs.
>
It's not, no. If you want a KVO way of removing all the objects use the remove<key>AtIndexes: or just set<Key>: with an empty array. You'll get different types of KVO message (NSKeyValueChangeRemoval vs NSKeyValueChangeSetting).
_______________________________________________
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