• 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
NSCell editing weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSCell editing weirdness


  • Subject: NSCell editing weirdness
  • From: David Aames <email@hidden>
  • Date: Tue, 3 Oct 2006 20:22:48 +0100

Hi all,

I've subclasses NSTextFieldCell to experiment implementing editWithFrame but the method never gets called! Here's the code which I'm using to set the cell up:

NSCell* c = [[DACell alloc] initTextCell:@""];
[c setEditable:YES];
[[[table tableColumns] objectAtIndex:0] setDataCell:c];

and i've overridden editWithFrame like this

- (void)editWithFrame:(NSRect)aRect inView:(NSView *)controlView editor:(NSText *)textObj delegate:(id)anObject event:(NSEvent *) theEvent {
NSLog(@"editing");
[super editWithFrame:aRect inView:controlView editor:textObj delegate:anObject event:theEvent];
}


but it never gets called. Hmmm what am I doing wrong?

Regards,
David
_______________________________________________
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


  • Follow-Ups:
    • Re: NSCell editing weirdness
      • From: Philip Dow <email@hidden>
  • Prev by Date: Re: Re: NSTabView and interface drawing artifacts
  • Next by Date: Bezier Path Arc Problem
  • Previous by thread: Re: When do I have to update the typing attributes?
  • Next by thread: Re: NSCell editing weirdness
  • Index(es):
    • Date
    • Thread