• 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: NSTableView - Open Panel on Double Click
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView - Open Panel on Double Click


  • Subject: Re: NSTableView - Open Panel on Double Click
  • From: Hal Mueller <email@hidden>
  • Date: Wed, 20 Feb 2008 21:03:50 -0800

I don't know whether it's possible to do what you want completely in IB.

What I did for a similar problem was to bind the NSTableView's doubleClickArgument to the array controller's selectedObjects, and its doubleClickTarget to self, with a selector of myUserTableClickAction.

That method signature looks like this:

- (void) myUserTableClickAction:(NSArray*)selectedObjects

In my case it makes sense to double-click when single or multiple objects are selected in the table. -myUserTableClickAction: handles the logic and responds appropriately.

Hal

On Feb 20, 2008, at 8:46 PM, Grant Limberg wrote:

I'm relatively new to Cocoa and haven't been able to find much of an answer to what I'm trying to do.

I'm working on a Core Data app (not document based). In the MainMenu.nib, there's an NSTableView. What I'd like to have happen is when a user double clicks on a row, similar to how iTunes opens up an ID3 Tag editor panel when you double click on a song.

The panel I'd like to open is also part of MainMenu.nib called EditorPanel. Is there a way set the EditorPanel as the target of the Double Click Target on the Table View Bindings pane? Or is this something that can only be done with code?

Any pointers on accomplishing this are much appreciated.

Thanks in advance,

Grant Limberg
email@hidden

_______________________________________________

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

_______________________________________________

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


References: 
 >NSTableView - Open Panel on Double Click (From: Grant Limberg <email@hidden>)

  • Prev by Date: Re: NSTableView - Open Panel on Double Click
  • Next by Date: Re: Matching a date field in a predicate
  • Previous by thread: Re: NSTableView - Open Panel on Double Click
  • Next by thread: Custom View drawn twice?
  • Index(es):
    • Date
    • Thread