• 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
adding to NSBrowser from a static function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

adding to NSBrowser from a static function


  • Subject: adding to NSBrowser from a static function
  • From: Torsten Curdt <email@hidden>
  • Date: Wed, 06 Apr 2005 22:50:09 +0200

I am using a shared library that calls
back into my code via a static function

  static void THE_API anApiFunction() {
    // do some stuff
  }

...that I register in main.m before I
pass control to the NSApplicationMain.

    ...
    api_register(anApiFunction);

    return NSApplicationMain(argc,  (const char **) argv);
  }

Now this function is supposed to change
the content of a NSBrowser inside the
application window.

I am now wondering what would be the
best way to get hold of the NSBrowser
instance so the function can actually
change the content.

Any thoughts? ...or better ways?

I am also a bit concerned about
threading issues...

cheers
--
Torsten

Attachment: signature.asc
Description: OpenPGP digital signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Need help with Radio Buttons...
  • Next by Date: Re: Need help with Radio Buttons...
  • Previous by thread: Re: Tool tip tracking rects in an NSTextView subclass (was: Forcing drawViewBackgroundInRect...)
  • Next by thread: possible to tab through buttons and other controls?
  • Index(es):
    • Date
    • Thread