• 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: Variables: Why one way and not another?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Variables: Why one way and not another?


  • Subject: Re: Variables: Why one way and not another?
  • From: Brian Christensen <email@hidden>
  • Date: Sat, 1 Nov 2003 16:23:10 -0500

On Nov 1, 2003, at 11:38 AM, Robert Borsuk wrote:

Woohoo. Okay, thanks Andreas, Alastair (and his project) and Uli. I got it solved. Here's what I was doing wrong. When I made the nib I instantiated the subclass in IB so I could connect my buttons actions to it. Wrong. I should have just connected the button to the view. This fixed the problems. It was weird because the action would be called. Then it dawned on me with what Andreas said. I guess I was actually creating two instances (one in the window and one I instantiated. Life is good once again and my variables now work.
Thanks for everyones help.

You really shouldn't be connecting your buttons to your view though. Create a controller class instead.

/brian
------------------------------------------------------------------
Brian Christensen <email@hidden>
Cocoa Dev Central <http://www.cocoadevcentral.com>
_______________________________________________
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: Variables: Why one way and not another?
      • From: "Alastair J.Houghton" <email@hidden>
References: 
 >Re: Variables: Why one way and not another? (From: "Alastair J.Houghton" <email@hidden>)
 >Re: Variables: Why one way and not another? (From: Robert Borsuk <email@hidden>)
 >Re: Variables: Why one way and not another? (From: Andreas Mayer <email@hidden>)
 >Re: Variables: Why one way and not another? (From: Robert Borsuk <email@hidden>)

  • Prev by Date: Re: OT: What is ipulse-ics on Panther
  • Next by Date: Re: TableView formatting and "small" NSButton questions
  • Previous by thread: Re: Variables: Why one way and not another?
  • Next by thread: Re: Variables: Why one way and not another?
  • Index(es):
    • Date
    • Thread