• 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: Cocoa alternative for method aliasing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa alternative for method aliasing?


  • Subject: Re: Cocoa alternative for method aliasing?
  • From: David Duncan <email@hidden>
  • Date: Tue, 29 Mar 2011 11:31:16 -0700

On Mar 29, 2011, at 11:20 AM, Lou Zell wrote:

> Mornin' Devs,
>
> Is there a recommended pattern for passing events up the responder chain
> without subclassing a class and overriding the methods I'm interested in?
> Here is an explanation of what I'm trying to do:


There is a certain question of "why?" in this, but I think the answer is that you should use the various control events that are exposed for -addTarget:action:forControlEvents:. By doing so you can get action messages for basically every touch interaction without needing to subclass to forward messages.
--
David Duncan

_______________________________________________

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: 
 >Cocoa alternative for method aliasing? (From: Lou Zell <email@hidden>)

  • Prev by Date: Cocoa alternative for method aliasing?
  • Next by Date: Re: Font Height and -[NSString sizeWithAttributes:]
  • Previous by thread: Cocoa alternative for method aliasing?
  • Next by thread: Re: Cocoa alternative for method aliasing?
  • Index(es):
    • Date
    • Thread