• 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
Non-Document App & Binding to Delegate ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Non-Document App & Binding to Delegate ...


  • Subject: Non-Document App & Binding to Delegate ...
  • From: SA Dev <email@hidden>
  • Date: Wed, 6 Jul 2005 08:33:56 -0400

List:

I have a table full of tasks. In the table, I have a column of 'inspector' buttons. I want these buttons to open the inspector for the corresponding task. Because I'm a lazy lazy man, I've just been stuffing everything in the app delegate; it works. I already have a working -openTaskInspectorForTask:(id)task method and I wired up my double-click action to make sure it was working. All's well there.

Now to get the inspector button to work, I broke the double-click connection and:

- I've bound the inspector button column's target to File's Owner (NSApplication), to the key path 'delegate'. I specified "openTaskInspectorForTask:" (w/out quotes, but with the colon).

- I've bound the column's argument to my Tasks array controller's arrangedObjects (no key path).

I build, run, click ... and the method doesn't get called (I have an NSLog() call to show me if the method's even being called).

  What seems to be my misconception *today*? ;-)


_______________________________________________ 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
  • Prev by Date: Converting certain characters from Unicode to ASCII
  • Next by Date: Re: Core Video for Asynchronous Frame Grabbing
  • Previous by thread: Re: Converting certain characters from Unicode to ASCII
  • Next by thread: Reading system preferences?
  • Index(es):
    • Date
    • Thread