• 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
Accessing FilesOwner fm controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accessing FilesOwner fm controller


  • Subject: Accessing FilesOwner fm controller
  • From: Harry Plate <email@hidden>
  • Date: Mon, 16 Nov 2009 11:21:15 -0800
  • Thread-topic: Accessing FilesOwner fm controller

I am writing a plugin to another application, and I must manage my own NIBs.

I have been successful loading them and getting some of the basic UI
elements working.

But, what I am having trouble with is communicating with "File's Owner".
When I instantiate the NIB, I pass my class as owner - then when the
controller is called via -awakeFromNib, I need to communicate with that
class to get some additional information.

How is that done?

I've tried to use the topLevelObjects that is returned from

    [nib instantiateNibWithOwner: self topLevelObjects: &topObjects ]

Thinking that I would find the controller, and pass to it a pointer to my
class that is the Files Owner. That works, but its too late for
-awakeFromNib (by the time I return fm
instantiateNibWithOwner:topLevelObjects: the -awakeFromNib has already been
invoked.

So how can I get access to File's Owner from the controller so I can
communicate w/ my class during -awakeFromNib?

TIA,

-harry


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Accessing FilesOwner fm controller
      • From: Graham Cox <email@hidden>
    • Re: Accessing FilesOwner fm controller
      • From: Ken Thomases <email@hidden>
  • Prev by Date: opening a document via Finder without NSDocument
  • Next by Date: Re: opening a document via Finder without NSDocument
  • Previous by thread: Re: opening a document via Finder without NSDocument SOLVED
  • Next by thread: Re: Accessing FilesOwner fm controller
  • Index(es):
    • Date
    • Thread