• 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 behavior changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView behavior changes


  • Subject: Re: NSTableView behavior changes
  • From: Harry Plate <email@hidden>
  • Date: Tue, 17 Feb 2009 19:15:26 -0800
  • Thread-topic: NSTableView behavior changes

Graham,

Thanks for the insights!

>
> In IB, select the table column, and uncheck 'editable'. This will
> prevent the item getting into the editable state at all.
>
    IB is kinda tricky here; one must "drill down" into the table view until
one can see the column properties. But I got there!

> The reason your current edit changes don't 'stick' is because your
> datasource isn't implementing -
> tableView:setObjectValue:forTableColumn:row:
>
    for once, ignorance saved me ;-)

>>    2) I would like my user to be able to select a table entry, and
>> be able
>> to respond to the 'delete' key - by discarding the selected entry.
>> Currently
>> that does not work at all.
>
> You have to make this happen yourself.
<snip>

Will start down this path after some rest. To be sure I don't dig too deep
of a hole...

>
> There's no such thing as magic ;-)
>
> Yes the controller will typically be the datasource, but you have to
> set this up, usually in IB by dragging a connection between the
> table's 'datasource' outlet and the controller.
>

Of course its magic ;-) Else how can I explain this to my wife?!

Sho'nuf, the controller had the definitions as you said. And I did them. The
book I am walking thru has had me doing so many things that am forgetting
most of them (and certainly did not understand them anywat) along the way.

But this is progress!


Thanks again - this has been extremely helpful!

-harry


_______________________________________________

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: 
 >Re: NSTableView behavior changes (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSTableView behavior changes
  • Next by Date: Multiline srings
  • Previous by thread: Re: NSTableView behavior changes
  • Next by thread: Multiline srings
  • Index(es):
    • Date
    • Thread