• 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
Basic info about outlets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Basic info about outlets


  • Subject: Basic info about outlets
  • From: "John Love" <email@hidden>
  • Date: Thu, 15 May 2008 07:30:09 -0400

I *think* I understand about outlets and actions .. but now I am not so
sure.

Specifically, if I set (NSWindow *)documentWindow as an Outlet in my main
nib and I declare in MyDocument.h file:

interface MyDocument:NSDocument {
          IBOutlet NSWindow *documentWindow;
}
...

- (void) someMethod:documentWindow;

and in MyDocument.m file:

- (void) someMethod {
      // some operation that accesses a property of documentWindow
}

Okay, documentWindow is typed as a outlet in the main nib and in the
interface,.h, file ... and I have control-dragged from the FileOwner to the
title bar of the Window, selecting "documentWindow" as the Outlet.  But,
just exactly HOW does the actual documentWindow object get passed so that
someMethod can look at one of its properties?

This question is oriented to "behind the scenes".

Thanks in advance>

John Love
_______________________________________________

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: Basic info about outlets
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Conditionally modifying NIBs?
  • Next by Date: iPhone SDK List?
  • Previous by thread: Re: Maximize/Minimize other applications
  • Next by thread: Re: Basic info about outlets
  • Index(es):
    • Date
    • Thread