• 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
Getting a NSView pointer from a nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting a NSView pointer from a nib


  • Subject: Getting a NSView pointer from a nib
  • From: Milen Dzhumerov <email@hidden>
  • Date: Fri, 28 Apr 2006 14:27:03 +0100

Hi all,

I was wondering today if is possible to retrieve a NSView* from a nib. For example I have a nib which just contains a custom view on which several controls are laid out. What I want to do is get a pointer to that view (instantiate the nib first) and make it the content view of another window (eg. the custom view could contain preferences controls for a preferences window). I'm also wondering how am I going to connect the separate nib with the rest of the application... I suppose I have to do everything programmatically. Thanks for your help.

PS. I should note that I'm not quite familiar with the whole Nib concept so I'm trying to apply techniques from other programming environments (I'm basically thinking of Nib files as files describing interface elements which I can instantiate later programmatically somewhere in the application a la Glade from the GTK+ environment). I'm getting a few books on Cocoa next week so I won't bother the list anymore with my lame (and probably off-topic) question.

Kind regards,
Milen Dzhumerov

Web: http://1nsp1r3d.co.uk/
Email: email@hidden



_______________________________________________
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


  • Follow-Ups:
    • Re: Getting a NSView pointer from a nib
      • From: Daniel Braun <email@hidden>
    • Re: Getting a NSView pointer from a nib
      • From: Warner Onstine <email@hidden>
    • Re: Getting a NSView pointer from a nib
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: How to receive the events across the applications
  • Next by Date: Re: Converting C strings into NSStrings (and vice versa)
  • Previous by thread: Re: How to receive the events across the applications
  • Next by thread: Re: Getting a NSView pointer from a nib
  • Index(es):
    • Date
    • Thread