• 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
variables pb
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

variables pb


  • Subject: variables pb
  • From: Cyprien <email@hidden>
  • Date: Mon, 22 Sep 2003 13:40:27 +0200

Hi every body

I'm sorry to disturb you for such a question, but I've tried to solve it by myself, and I didn't succeed.

I got a window with many parameters, and I want to use them to draw a fonction in a second window. When I click on a button, the second window open, but I don't have access to the variables of the first window. [txtField stringValue] doesn't work, for example. I receive a (null).

I've tried to make variable accessor like

-(void) n { return n; }

but it seems that, from the moment I click on the button (which launch a function showWindow), I can't access to the variables of the first window anuymore.

While the second window is not opened, I can access to any variable, I've checked it.

I've also tried to declare the variable like "static n int;" at the beginning of the .m file, but it doesn't seems to work either...


Does anybody know how to do this ?


Cyprien
_______________________________________________
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.

  • Prev by Date: Re: Using NSArchiver with NSDocument follow-up - Code example
  • Next by Date: Re: Objective-C Question
  • Previous by thread: Re: Using NSArchiver with NSDocument follow-up - code example
  • Next by thread: reinstalling dev tools
  • Index(es):
    • Date
    • Thread