• 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
custom view subclass won't connect to custom controller class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

custom view subclass won't connect to custom controller class


  • Subject: custom view subclass won't connect to custom controller class
  • From: otherguy <email@hidden>
  • Date: Sat, 28 Feb 2004 18:00:19 -0700

Hello all, I'm thoroughly confused.

I'm writing a custom subclass of NSView that I'm trying to connect to a custom controller class both instantiated in the nib file.

However, even though I've defined an outlet IBOutlet (id) dataSource in the custom view, and connected that outlet to the controller, when I log the value of dataSource during initWithFrame: for the custom view, I get (null).

Is there something I need to do during the initialization of the view to make outlets connected via interface builder stick?

Sample of what I'm logging... (TOGTempController is the dataSource)
2004-02-28 17:45:03.361 category view[4887] TOGCategoryView initWithFrame
2004-02-28 17:45:03.362 category view[4887] TOGCategoryView dataSource: (null)
2004-02-28 17:45:03.496 category view[4887] TOGTempController init
2004-02-28 17:45:03.504 category view[4887] TOGTempController init: self: <TOGTempController: 0x33fc70>

Thanks for your help, I'm totally lost as to why it wouldn't take.

Thank you!
-Cameron Wilhelm
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: custom view subclass won't connect to custom controller class
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: Populating NSTableView from data source
  • Next by Date: Re: smaller icon
  • Previous by thread: Some voodoo curses app's launching, icon display
  • Next by thread: Re: custom view subclass won't connect to custom controller class
  • Index(es):
    • Date
    • Thread