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

Uneditable NSTableView


  • Subject: Uneditable NSTableView
  • From: "Ewan Delanoy" <email@hidden>
  • Date: Wed, 23 Apr 2008 10:33:28 +0200 (CEST)
  • Importance: Normal

    Hello all,

  I'm trying to construct a Cocoa app that mimicks the Mail application,
with the difference
that it's not especially intended for mails : one the upper part a list of
titles, and on the lower
part exactly one title&text is shown. Double-clicking on a title in the
upper part makes the corresponding text displayed in the lower part.

 I implement the upper part as a NSTableView subclass (which I call
UneditableTableView), with one column and all rows uneditable (by setting
the tableView:shouldEditTableColumn:row:
method to always return NO in the delegate). That main app controller
a signature of signature -(void)updateLowerPartAfterSelectionInUpperPart
that makes the lower part display
the text associated to the title just selected. Finally, in some place in
my code
I have the line

   [uneditableTableView
setDoubleAction:@selector(updateLowerPartAfterSelectionInUpperPart:)];


  Unfortunately, this doesn't work : although the rows are indeed
uneditable and I can select
any one of them, the "updateLowerPartAfterSelectionInUpperPart" method is
never called
when I double-click on a title. Does anyone have any idea of what I should
do to fix this?

                                                                                 TIA,

                                                                                        Ewan


_______________________________________________

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

  • Follow-Ups:
    • Re: Uneditable NSTableView
      • From: Andy Lee <email@hidden>
    • Re: Uneditable NSTableView
      • From: Ian Jackson <email@hidden>
  • Prev by Date: Re: Inserting my own Responder before App?
  • Next by Date: Re: NSCollectionView and CoreData question
  • Previous by thread: Re: Setting NSImage with overlay blend to NSImageView
  • Next by thread: Re: Uneditable NSTableView
  • Index(es):
    • Date
    • Thread