• 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: deleting outline rows using a delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: deleting outline rows using a delegate


  • Subject: Re: deleting outline rows using a delegate
  • From: Cryx <email@hidden>
  • Date: Mon, 17 Jun 2002 02:58:38 -0500

On Sunday, June 16, 2002, at 12:46 PM, Cryx wrote:
I'd simply like for the delete key to trigger the removal of rows from an outline view. I know how to do this with a subclass, but not from a delegate. The documentation leads me to believe that doCommandBySelector: should be sent to the delegate, but it's not.

I thought I knew how to do this with a subclass, however it appears that something is hijacking the responder chain. I successfully rehijacked the responder chain, but I really think I'm cheating:

@implementation MyOutlineView

- (void)keyDown:(NSEvent *)event {
consumedKeyDown = NO;
[self interpretKeyEvents:[NSArray arrayWithObject:event]];
if (consumedKeyDown == NO) [super keyDown:event];
}

- (void)doCommandBySelector:(SEL)selector {
consumedKeyDown = [self tryToPerform:selector with:nil];
}

- (void)deleteBackward:(id)sender { /* remove item from outline */ }
- (void)deleteForward:(id)sender { /* remove item from outline */ }

@end

How may I properly utilize the responder chain to achieve this same result?
_______________________________________________
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: deleting outline rows using a delegate
      • From: Julian Barkway <email@hidden>
References: 
 >deleting outline rows using a delegate (From: Cryx <email@hidden>)

  • Prev by Date: Re: NSArray bad access?
  • Next by Date: Re: NSArray bad access?
  • Previous by thread: deleting outline rows using a delegate
  • Next by thread: Re: deleting outline rows using a delegate
  • Index(es):
    • Date
    • Thread