• 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
Re: How do I get a NSTableView to refresh.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get a NSTableView to refresh.


  • Subject: Re: How do I get a NSTableView to refresh.
  • From: "Kevin" <email@hidden>
  • Date: Thu, 1 Feb 2007 22:12:21 +0000
  • Importance: Normal
  • Sensitivity: Normal

If you're using Core Data, try doing [managedObjectContext processPendingChanges] after the drop is completed.

Kevin
Sent via BlackBerry from Cingular Wireless

-----Original Message-----
From: Martin van-Eerde <email@hidden>
Date: Thu, 1 Feb 2007 22:04:59
To:email@hidden
Cc:email@hidden
Subject: Re: How do I get a NSTableView to refresh.

I tried that one [myTable reloadData] as well, that still does not
refresh the table if app's window is not in the foreground.

The table does seem to have/know about the dropped item because as
soon as the window is clicked on to bring it to the foreground the
dropped item is displayed.

On 1 Feb 2007, at 21:29, email@hidden wrote:

> I don't use Core Data, but can't you just say [myTableView
> reloadData];
>
> On Feb 1, 2007, at 2:22 PM, Martin van-Eerde wrote:
>
>> I am still having problems trying to get my NSTableView (feed by
>> Core Data) to refresh after a object has been dragged to it.
>>
>> If my window is the top window I can drag "Up" from the finder and
>> the new object is immediately shown in the table view.
>>
>> If the finder window is the top window I can drag "Down" to my
>> window but the object is only displayed in the table once I click
>> on my window to make it the top level window.
>>
>> I have tried [view setDisplayNeeded] and [window setDisplayNeeded]...
>>
>> I don't mind if I have to programatically make my window the top
>> window but would rather it stayed in the background and
>> refreshed...  I have also tried [window makeKeyAndOrderFront] but
>> that did not bring my apps window to the front.
>>
>> Thanks Martin
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> 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
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

  • Follow-Ups:
    • Re: How do I get a NSTableView to refresh.
      • From: Martin van-Eerde <email@hidden>
References: 
 >How do I get a NSTableView to refresh. (From: Martin van-Eerde <email@hidden>)
 >Re: How do I get a NSTableView to refresh. (From: email@hidden)
 >Re: How do I get a NSTableView to refresh. (From: Martin van-Eerde <email@hidden>)

  • Prev by Date: Re: How do I get a NSTableView to refresh.
  • Next by Date: Re: Strange stretching NSView
  • Previous by thread: Re: How do I get a NSTableView to refresh.
  • Next by thread: Re: How do I get a NSTableView to refresh.
  • Index(es):
    • Date
    • Thread