• 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: DoubleClick in a NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DoubleClick in a NSTableView


  • Subject: Re: DoubleClick in a NSTableView
  • From: Frank Blome <email@hidden>
  • Date: Mon, 10 Jun 2002 15:29:08 +0200

On Montag, Juni 10, 2002, at 02:40 PM, Bill Cheeseman wrote:

I should have said that the table column's, not the cell's, Editable option
must be unchecked. To do that, you have to double-click the column header in
Interface Builder until the Info Panel for NSTableColumn appears.

I did this as my very first step long ago...

But anyway: IT WORKS NOW!!!

The short story: After my app now started to crash with a SigBus error I decide to clean the target (agin) and (here comes the difference) _restart_ my Powerbook (running 10.1.5). After the next build my dc runs. Please don't ask my why...

But now I have another side affect: I have a switch in the preferences, where I can set the editable on or off. The method itself looks like this:

- (IBAction)setLockMode:(id)sender
{
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSTableColumn *typeColumn = [table tableColumnWithIdentifier:@"filterRow"];
BOOL isEditable;

if ([sender state]==YES)
isEditable = NO;
else
isEditable = YES;

[[typeColumn dataCell] setEditable:isEditable];
[defaults setBool:[sender state] forKey:@"LockMode"];
}

If I understand the documentation correctly:
<quote>
...
If the double-clicked cell is editable, this message isn't sent and the cell is edited instead.
...
</quote>
My dc must work when the cell is not editable and not work when the cell is editable. But this is not the case. Since my dc now finally works, my code (shown above) stopped working.

I don't hope, you loose your nerves with me ;-)
(I hope this makes sence in English - it's translated word by word from German...)

Frank
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: DoubleClick in a NSTableView
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: DoubleClick in a NSTableView (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Who has the focus ?
  • Next by Date: Re: Small NSButton
  • Previous by thread: Re: DoubleClick in a NSTableView
  • Next by thread: Re: DoubleClick in a NSTableView
  • Index(es):
    • Date
    • Thread