• 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
Re: Newbie: Simple display with NSView - problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie: Simple display with NSView - problem


  • Subject: Re: Newbie: Simple display with NSView - problem
  • From: Genu Mathew <email@hidden>
  • Date: Mon, 6 Oct 2008 09:46:49 -0700 (PDT)

> I'm pretty sure this isn't what you're
> proposing, but it could be one interpretation of your
> description!

Sorry, I should have phrased it better. I am trying to avoid hardcoding the filenames into the custom views

> In the NIB, just use a "custom view", then set
> its class to your class
> name. Then you don't have to instantiate it in code at
> all - it's
> already in existence in the NIB. When the NIB is loaded you
> can set
> the filename of the image, most likely using the
> -awakeFromNib
> message. To obtain the reference to the view, add an
> IBOutlet to its
> controller and link it up in IB. Then you can use that
> outlet to refer
> to the view.

I tried you suggestion and it worked. Thanks a lot !!!!!!!

Genu



_______________________________________________

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

References: 
 >Re: Newbie: Simple display with NSView - problem (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Data Types for Extracting samples from Audio Buffer
  • Next by Date: Downloading with NSData and NSFileManager
  • Previous by thread: Re: Newbie: Simple display with NSView - problem
  • Next by thread: Re: Cocoa-dev Digest, Vol 5, Issue 1701
  • Index(es):
    • Date
    • Thread