Re: NSTableView works in 10.5 but not in 10.4
Re: NSTableView works in 10.5 but not in 10.4
- Subject: Re: NSTableView works in 10.5 but not in 10.4
- From: "Ellen Chou" <email@hidden>
- Date: Tue, 9 Sep 2008 13:53:33 -0700
Thanks,
reloadData resolve the problem with 10.4.8.
- Ellen
On Mon, Sep 8, 2008 at 3:20 PM, Corbin Dunn <email@hidden> wrote:
>
> On Sep 8, 2008, at 2:36 PM, Ellen Chou wrote:
>
> Hi Stephane,
>>
>> Indeed, reloadData is not called at all. But why can it work fine in
>> 10.5.2?
>>
>> When and where I should call reloadData?
>>
>>
> That's easy; after you change your model. When do you initialize your
> arrays, etc? After that point, call reloadData. Possibly in -awakeFromNib.
>
> If it is working by chance on Leopard, then it is probably because of some
> ordering issue that changed slightly.
>
> corbin
>
>
>
>
> Thanks,
>> Ellen
>>
>> On Mon, Sep 8, 2008 at 9:52 AM, Stéphane Sudre <email@hidden> wrote:
>>
>>
>>> On Sep 8, 2008, at 12:58 PM, Ellen Chou wrote:
>>>
>>> I have a tree view window that uses NSTableView and NSOutlineView lists
>>> out
>>>
>>>> all the sub folders under user's home directory. For some reason, this
>>>> window shows the folder contents correctly in Mac OS 10.5.2, but not in
>>>> Mac
>>>> OS 10.4.x running on iMac which is PowerPC host running on Intel Duel
>>>> Core
>>>> CPUs.
>>>>
>>>> It seems to me the Notification/Event was not functioning properly in
>>>> Mac
>>>> OS
>>>> 10.4.x iMac. I don't get a chance to run on MacBook 10.4.x. If any one
>>>> has
>>>> MacBook Intel CPU running 10.4.x, please let me know.
>>>>
>>>> Anyone run into the similar problem?
>>>>
>>>>
>>> Are you referring to a specific sample code?
>>>
>>> Which notification/event are you referring to?
>>>
>>> When there's a display strangeness in NSTableView/NSOutlineView, the
>>> first
>>> thing to check is that reloadData is called before at least once.
>>>
>>>
>>>
_______________________________________________
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