• 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: Terminate app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Terminate app


  • Subject: Re: Terminate app
  • From: Charles Srstka <email@hidden>
  • Date: Mon, 13 Jul 2015 19:38:27 -0500

On Jul 13, 2015, at 7:15 PM, Quincey Morris <email@hidden> wrote:
>
> On Jul 13, 2015, at 16:55 , Charles Srstka <email@hidden <mailto:email@hidden>> wrote:
>>
>> What’s the intended use of that, to force an instance to use a superclass’s implementation of some method instead of the overridden version? If so, that seems really open to abuse…
>
> I dunno, personally. But it was discussed in the old Swift forum. For example:
>
> 	https://devforums.apple.com/message/1128450#1128450 <https://devforums.apple.com/message/1128450#1128450>
>
> A type-safe target-action pattern seems to be the winning use case.

Ah, that makes sense.

FWIW, I decided to test it in a playground, and it does seem that it always uses the overridden version of a method, no matter which class you use to get the instance method, so objection retracted.

Charles

_______________________________________________

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: 
 >Terminate app (From: "Jan E. Schotsman" <email@hidden>)
 >Re: Terminate app (From: Quincey Morris <email@hidden>)
 >Re: Terminate app (From: Charles Srstka <email@hidden>)
 >Re: Terminate app (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Terminate app
  • Next by Date: Re: Terminate app
  • Previous by thread: Re: Terminate app
  • Next by thread: Re: Terminate app
  • Index(es):
    • Date
    • Thread