Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 28, 2010, 09:48 AM   #1
Monaj
macrumors regular
 
Join Date: May 2009
NSButton, binding question

Hi all,

I am trying a cocoa application with core-data. The application contains an entity: UsefulUrl with attribute: url. The entered urls are displayed in table view.

I am able to insert, modify and delete the entered urls from table via cocoa bindings (NSArrayController).

Now, I want to open the urls of selected rows in browser, on click of a button, using cocoa bindings.

I think I can do it via button's bindings: Action Invocation - Argument/ Target, but I could not make it working.

Can anyone suggest me exactly how to do it or some useful url?

Thanks,

Monaj
Monaj is offline   0 Reply With Quote
Old Jul 29, 2010, 08:45 AM   #2
Monaj
Thread Starter
macrumors regular
 
Join Date: May 2009
solution found

Quote:
Originally Posted by Monaj View Post
I think I can do it via button's bindings: Action Invocation - Argument/ Target, but I could not make it working.
I was right... in the argument binding pane I binded the url of UsefulUrl and in target I binded the selector gotoUrl: in my controller class. In gotoUrl method I used NSWorkspace method to open the link in default browser and it is working as intended
Monaj is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Looking for OD only binding script / need help with binding to OD with DPS dabizkitman Mac OS X Server, Xserve, and Networking 5 Jan 9, 2014 10:29 AM
Need help with binding some keys in windows 7! Zeov Windows, Linux & Others on the Mac 0 Jul 6, 2013 04:29 PM
Set label title from mouseEntered: on a NSButton Val K Mac Programming 1 Jun 19, 2013 03:39 AM
AD Binding Issue dmoore70 MacBook Pro 4 Aug 28, 2012 03:53 PM

Forum Jump

All times are GMT -5. The time now is 06:18 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC