• 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: Passing C Style Function Callbacks in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing C Style Function Callbacks in Cocoa


  • Subject: Re: Passing C Style Function Callbacks in Cocoa
  • From: Hiro Fujimoto <email@hidden>
  • Date: Thu, 8 Apr 2004 22:36:29 +0900

Thanx, Clark.

Oh, I'm sorry.
I have misunderstood your discussion below.

--

>> On Apr 01, 2004, at 17:45, Scott Anguish wrote:
>>
>>> On Apr 1, 2004, at 4:40 PM, John Stiles wrote:
>>>
>>>>> I'm under the impression that the result of [super init] and the
>>>>> variable self will always be the same.
>>>>
>>>> This is not true. The super is free to return something else. (I
>>>> don't know of any concrete examples, but Objective-C books sometimes
>>>> warn about this.)
>>>>
>>>
>>> even if super does change self, it'll be reflected in the value of
>>> self that the subclass is using.
>>
>> No, that's why the assignment is part of the idiom.
>>
>
> In most cases you'll either get the same self back, or nil (if there
> is a failure).
>
> Yes, this is not the case with wonky stuff like class clusters.
>
------------------------------------------------------------------------
---------
hiro FUJIMOTO - developer in Japan.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.


References: 
 >Re: Passing C Style Function Callbacks in Cocoa (From: Vince Ackerman <email@hidden>)
 >Re: Passing C Style Function Callbacks in Cocoa (From: Hiro Fujimoto <email@hidden>)
 >Re: Passing C Style Function Callbacks in Cocoa (From: Clark Cox <email@hidden>)

  • Prev by Date: Re: NSPanel as Sheet and controlling the run loop
  • Next by Date: outlest are null
  • Previous by thread: Re: Passing C Style Function Callbacks in Cocoa
  • Next by thread: Re: Passing C Style Function Callbacks in Cocoa
  • Index(es):
    • Date
    • Thread