• 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: Invoke a method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invoke a method


  • Subject: Re: Invoke a method
  • From: Dave DeLong <email@hidden>
  • Date: Tue, 07 Apr 2009 07:30:55 -0600

Probably what you're doing is something like this:

FormBController * b = [[FormBController alloc] init];
[[self navigationController] pushViewController:b animated:YES];
[b release];

What about making b an instance variable of the object, and then do:

if (!b) { b = [[FormBController alloc] init];
[[self navigationController] pushViewController:b animated:YES];

And then in your viewWillAppear: method, have something like:

if (b && animated) {
  [myTextField setText:[b userEnteredValue]];
  [b release];
  b = nil;
}

HTH,

Dave


On Apr 7, 2009, at 5:06 AM, developers mac wrote:

I have two forms (.xib file). From form A, i used to navigate to form B.
After selecting a value from form B, I will return back to form A. For that
I used, [self.navigationController popViewControllerAnimated:YES]; to move
back to form A. Then the problem occurred. When doing this, I am carrying
some data's globally. All i have to do is to put those selected values from
form B in the textfield of form A. I am not sure on how to solve this. I
have several methods like viewDidload, didSelectRowAtIndexPath and many
other, I tried placing a break point in each of the methods i have & found
none to be firing. So, thats my problem. If i can invoke some method, then I
can put those values in the textfields. I hope this helps you to understand
my problem in a much more clarified way. Thanks in Advance!
_______________________________________________


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: 
 >Re: Invoke a method (From: developers mac <email@hidden>)

  • Prev by Date: Re: "Word Wrap" and "Character Wrap" in NSTextField
  • Next by Date: kern/locks.h
  • Previous by thread: Re: Invoke a method
  • Next by thread: Accessing remote database
  • Index(es):
    • Date
    • Thread