Update Cocoa object from callback
Update Cocoa object from callback
- Subject: Update Cocoa object from callback
- From: "Mark's Studio" <email@hidden>
- Date: Tue, 20 May 2003 23:15:50 +0200
How do i notify my Cocoa object with a value from within the callback?
i tried with NSNotification
[[NSNotificationCenter defaultCenter] postNotificationName:@"Update"
object:[NSNumber numberWithUnsignedInt:myValue]]
but i get this in the console
_NSAutoreleaseNoPool(): Object 0x17f7ab0 of class NSCFNumber
autoreleased with no pool in place - just leaking
should i post notification with object:nil and then [myCocoaObject
setValue: myValue];
or what is the proper way to do this?
is AUListenerCreate something that can be used with Cocoa?
I looked at all the fine examples, but C++ is not my friend, so i did
not learn much from them.
Peter Mark
Mark's Recording Studio A/S
Lundeskovsvej 3 2900 Hellerup
Denmark
Tel: +45 35366078 Fax: +45 35366038
www.marks-studio.dk
email@hidden
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.