Re: UITextfield print to NSLog

2009-12-27 Thread David Duncan
On Dec 26, 2009, at 7:33 AM, Chad Eubanks wrote:

 I'm working on an app that allows my store to capture customers information.  
 I have 5 UITextFields where the customer enters their info.  For now I would 
 like to capture the info entered in the UItextFields and print it to my 
 console.
 
 My final goal is to pass the customers info into another department in my 
 store.  But for now the console will do.
 
 Make sense?


I think you went from two low level to too high level :).

The information I was seeking (and which will likely allow you to answer your 
own question) is more along the lines of I want to log the strings when I 
press a button or I want to log the strings when I push a view controller.

The logic of your application will dictate where you put the logging calls. 
Figure out what you want to print in response to and you can figure out where 
the calls belong.
--
David Duncan
Apple DTS Animation and Printing

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: UITextfield print to NSLog

2009-12-26 Thread Chad Eubanks

Yandy,

Thank you for the response and info but can you please elaborate a  
little more.  Would NSLog be in my


-(void)viewdidbeginediting {
}

???

Chad Eubanks

Sent from my iPhone

On Dec 25, 2009, at 11:52 PM, Yandy Ramirez yan...@gmail.com wrote:


Assuming your UITextField is an IBOutlet, simple way:

NSLog(@%@, self.myTextField.text);

you can also implement the UITextFieldDelegate and pass the  
textField value as you begin editing, once it's done editing and so  
forth.



--
yandy


On Fri, Dec 25, 2009 at 6:49 PM, Chad Eubanks  
chadcreat...@gmail.com wrote:

Hello,

I'm working on an iPhone app and need help passing entered text from  
a UITextfield into NSLog.  Any thoughts?


Happy Holidays,

Chad Eubanks

Sent from my iPhone
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/yandyr%40gmail.com

This email sent to yan...@gmail.com


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: UITextfield print to NSLog

2009-12-26 Thread David Duncan
On Dec 26, 2009, at 6:58 AM, Chad Eubanks wrote:

 Yandy,
 
 Thank you for the response and info but can you please elaborate a little 
 more.  Would NSLog be in my
 
 -(void)viewdidbeginediting {
 }
 


Hard to know where you should put it, since you don't tell us what you are 
trying to accomplish. If you want to print the text in a text view, Yandy has 
told you how – but where you put it will depend on what your purpose for 
printing it is in the first place
--
David Duncan
Apple DTS Animation and Printing

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: UITextfield print to NSLog

2009-12-26 Thread Yandy Ramirez
Assuming your UITextField is an IBOutlet, simple way:

NSLog(@%@, self.myTextField.text);

you can also implement the UITextFieldDelegate and pass the textField value
as you begin editing, once it's done editing and so forth.


--
yandy


On Fri, Dec 25, 2009 at 6:49 PM, Chad Eubanks chadcreat...@gmail.comwrote:

 Hello,

 I'm working on an iPhone app and need help passing entered text from a
 UITextfield into NSLog.  Any thoughts?

 Happy Holidays,

 Chad Eubanks

 Sent from my iPhone
 ___

 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

 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:
 http://lists.apple.com/mailman/options/cocoa-dev/yandyr%40gmail.com

 This email sent to yan...@gmail.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: UITextfield print to NSLog

2009-12-26 Thread Yandy Ramirez
+1 on this, it's completely up to you where you want to put it.


--
yandy


On Sat, Dec 26, 2009 at 10:01 AM, David Duncan david.dun...@apple.comwrote:

 On Dec 26, 2009, at 6:58 AM, Chad Eubanks wrote:

  Yandy,
 
  Thank you for the response and info but can you please elaborate a little
 more.  Would NSLog be in my
 
  -(void)viewdidbeginediting {
  }
 


 Hard to know where you should put it, since you don't tell us what you are
 trying to accomplish. If you want to print the text in a text view, Yandy
 has told you how – but where you put it will depend on what your purpose for
 printing it is in the first place
 --
 David Duncan
 Apple DTS Animation and Printing

 ___

 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

 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:
 http://lists.apple.com/mailman/options/cocoa-dev/yandyr%40gmail.com

 This email sent to yan...@gmail.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


UITextfield print to NSLog

2009-12-25 Thread Chad Eubanks

Hello,

I'm working on an iPhone app and need help passing entered text from a  
UITextfield into NSLog.  Any thoughts?


Happy Holidays,

Chad Eubanks

Sent from my iPhone
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com