• 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: Re: Updating webview with HTML attribute of a managed object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Updating webview with HTML attribute of a managed object


  • Subject: Re: Re: Updating webview with HTML attribute of a managed object
  • From: "Tom Burns" <email@hidden>
  • Date: Tue, 18 Jul 2006 12:58:03 -0400

Ah, I wasn't aware that the ArrayController's current selection
reflected the current selection of the NSTableView. If it really does,
this simplifies things quite a bit.

Tom

On 7/18/06, Andreas Mayer <email@hidden> wrote:

Am 18.07.2006 um 18:21 Uhr schrieb Tom Burns:

> I am not sure how to go about
> "getting" the managed object associated with the selected row in the
> tableview.

You ask the associated array controller for it's current selection:

id firstSelectedObject = [[myArrayController selectedObjects]
objectAtIndex:0];


Also, you'll probably want to add an observer, to be notified when the selection changes:

[myArrayController addObserver:self forKeyPath:@"selection"
options:NSKeyValueObservingOptionNew context:NULL];


And don't forget to remove the observer, before you destroy it.



Andreas
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Updating webview with HTML attribute of a managed object (From: "Tom Burns" <email@hidden>)
 >Re: Updating webview with HTML attribute of a managed object (From: Jim Correia <email@hidden>)
 >Re: Re: Updating webview with HTML attribute of a managed object (From: "Tom Burns" <email@hidden>)
 >Re: Updating webview with HTML attribute of a managed object (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: Updating webview with HTML attribute of a managed object
  • Next by Date: how do I copy the Finder Sidebar?
  • Previous by thread: Re: Updating webview with HTML attribute of a managed object
  • Next by thread: NSTextField text disappears when loosing focus in a view attached to NSSavePanel
  • Index(es):
    • Date
    • Thread