• 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
IB creating NULL outlet...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IB creating NULL outlet...


  • Subject: IB creating NULL outlet...
  • From: Jeff Diamond <email@hidden>
  • Date: Mon, 05 Oct 2009 18:06:30 -0500

This is related to my previous thread. I have a situation in which an IBOutlet I've defined is getting a value of 0, leaving me unable to communicate with a GUI object. I'm using XCode 3.1. Here's a summary of the scenario in IB:

I have dragged an NSObject (blue cube) to my MainMenu.xib folder. I've checked that this object is set to my controller class.
I also have an NSOpenGLView in my GUI, and it's set to my View class.


I've set the controller object to set its IBOutlet to this OpenGLView, by ctl-dragging a line from the NSObject to the View. It shows the correct outlet name, but nothing to indicate the outlet is hooked up to this View.

When I run the application, the IBOutlet comes up zero, so apparently the hook up failed.
I'm wondering if I'm missing something very basic here.


Thanks, guys.
- Jeff



_______________________________________________

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: IB creating NULL outlet...
      • From: Kevin Cathey <email@hidden>
    • Re: IB creating NULL outlet...
      • From: Graham Cox <email@hidden>
  • Prev by Date: Problems calling a method from an IB-created instance...
  • Next by Date: NSNotificationCenter problem using new blocks style API calls
  • Previous by thread: Re: Problems calling a method from an IB-created instance...
  • Next by thread: Re: IB creating NULL outlet...
  • Index(es):
    • Date
    • Thread