Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Notification Manager Callback Argument How ?



who can read has a clear advantage :-O
sorry, for missunderstanding I confused the 2 fields.

I want to set another icon in the dock, when flashing and want to reset
it to the old one, when the notification is finished.

Thanks and all the best

Matthias

-----------------------------------------------
Admilon Consulting GmbH
http://www.admilon.com
iChat/AIM: MatKoyasan
Tel. +81-736-56-3905
-----------------------------------------------

Am/On Wed, 9 Nov 2005 19:55:03 -0800 schrieb/wrote James W. Walker:

>>>  On Nov 9, 2005, at 9:17 AM, Matthias Schmidt wrote:
>>>
>>>>  how can I pass an argument (in this case an IconRef) to a callback
>>>>  method of the notification manager ?
>>>>  if i try to abuse one of the fields of the NMRec the thing is
>>>>  crashing.
>
>I wrote:
>
>>>  That's what the nmRefCon field is for.
>
>Laurence Harris <email@hidden> wrote:
>
>>The icon is ignored in Mac OS X if I recall correctly.
>
>The icon was in the nmIcon field, not nmRefCon.  Anyway Mr. Schmidt 
>did not say what he wanted to use an IconRef for, so I did not assume 
>that he was trying to display an icon in an Apple menu.
>
>
>Matthias Schmidt wrote:
>
>>Anyway I tried to abuse that field and pass my argument through that to
>>the callback, but it caused a crash, when the callback routine was
>>called. (Why it causes a crash, when we don't need that field anymore?)
>
>This is not an abuse, the documentation says that nmRefCon is for use 
>by your application.  I think there must be some other reason for the 
>crash.  For instance maybe the IconRef is no longer valid when the 
>response callback is called.
>
>-- 
>   James W. Walker, ScriptPerfection Enterprises, Inc.
>   <http://www.write-brain.com/>
> _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>Carbon-dev mailing list      (email@hidden)
>Help/Unsubscribe/Update your Subscription:
>http://lists.apple.com/mailman/options/carbon-dev/email@hidden
>
>This email sent to email@hidden
>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Notification Manager Callback Argument How ? (From: Laurence Harris <email@hidden>)
 >Re: Notification Manager Callback Argument How ? (From: "James W. Walker" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.