• 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
Update Cocoa object from callback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Update Cocoa object from callback
      • From: Jeff Moore <email@hidden>
    • Re: Update Cocoa object from callback
      • From: Luke Bellandi <email@hidden>
  • Prev by Date: Thanks for Documentation Feedback!
  • Next by Date: Re: Update Cocoa object from callback
  • Previous by thread: Thanks for Documentation Feedback!
  • Next by thread: Re: Update Cocoa object from callback
  • Index(es):
    • Date
    • Thread