I’m writing an application based on Chapter 7: A Class of Our Own from Shane Stanley’s book. I have everything hooked up (i.e., bindings) and everything works as it should.
My custom class has multiple properties. I have a single-column table that displays one of the class’ properties. (It is a sidebar, similar to iTunes, iPhoto and alike.)
My question is in regards to the NSArrayController’s add: action. When clicking on the button that is connected to the add: action a new Class object is created. However it is not selected in the table. I saw the select inserted objects option for the array controller but that selects everything in the table when the application is first launched. (Right now I’m generating test data in the main delegate’s applicationWillFinishLaunching_ handler.)
I’d like to have the new object selected in the table and ready for editing. Am I better off writing my own add: action or is there something I can set in IB? I haven’t found anything obvious in IB nor have my searches here proved fruitful.
Thanks in advance,
Brad Bumgarner
Model: Macbook (mid 2010)
AppleScript: xCode 3.2.6
Browser: Safari 7536.25
Operating System: Mac OS X (10.7)