• 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: Passing data to a different nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing data to a different nib


  • Subject: Re: Passing data to a different nib
  • From: Cody Brimhall <email@hidden>
  • Date: Fri, 24 Oct 2008 09:34:54 -0700

I'm not sure if this is the *best* approach for what you're trying to do, but you could use notifications (http://developer.apple.com/documentation/Cocoa/Conceptual/Notifications/Introduction/introNotifications.html ). If all you've got is two nib files loaded automatically at runtime, then I don't think there is a way for them to communicate more directly.


-Cody Brimhall

On Oct 23, 2008, at 9:31 PM, Hough, Kenneth P wrote:

Hi

I'm pretty sure it's very obvious however I still cannot figure it out. I have done research and followed some sample code but just does not function for me. The following is my problem:

I have a window with three NSButtons. When one of the buttons are clicked, the previous window hides and a new window appears showing a custom made number pad (just an array of buttons). After typing in some random number I hit the save button to pass the inputted number to the previous window where the title of the button will change (once the save button is clicked the number pad window is dealloc and the previous window shows up again). However my problem is I am unable to pass that simple piece of info. I tried using global variables by incorporating simple C but that did not work. I also tried creating methods within the class that holds the variable with the inputed data that will return that data when called, however it will cause the following compiler error: Undeclared method getValue....etc. What would be the easiest way to do this. Thanks.

Best Regards,
Kenneth


Biology and Biotechnology Combined Major SGA PPE Interim Senator Class of 2012 http://kenmbp.res.wpi.net cell: (413) 346-7298 rm: (508) 831-6836

This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e- mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.
www .emaildisclaimers.com_______________________________________________


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

_______________________________________________

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


References: 
 >Passing data to a different nib (From: "Hough, Kenneth P" <email@hidden>)

  • Prev by Date: Re: Apple Developer Forums
  • Next by Date: Re: Apple Developer Forums
  • Previous by thread: Passing data to a different nib
  • Next by thread: Framework stops working
  • Index(es):
    • Date
    • Thread