heya guys,
yes, it's me again. 
have question actions. suppose put 3 buttons on window. each of buttons connected same action. in code action, can use [sender tag] attribute tag set each button. know button sent event, long tags have been set match in ib , in xcode in action code.
so, question this... can actual 'sender' parameter compared anything? example, if create outlet in controller class named "button1" of type "nsbutton", , connect in ib actual button on window, evaluate true?
if(sender == button1)
didn't seem working last night , not sure whether *should* work or not?
real question this: 'sender' parameter of action same button instance if connect outlet nsbutton on window? or button instance that's been connected sort of go-between class instance can used talk button, isn't button itself?
thanks!
kevin
yes said 
don't have iboutlet connected in ib. can check nslog(@"mybutton: %@", mybutton); mybutton iboutlet.
Forums Macs Mac Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
Comments
Post a Comment