Re: No longer use NSLog() in Xcode 4?
Re: No longer use NSLog() in Xcode 4?
- Subject: Re: No longer use NSLog() in Xcode 4?
- From: Scott Ribe <email@hidden>
- Date: Thu, 15 Sep 2011 13:16:58 -0600
On Sep 15, 2011, at 12:57 PM, Jerry Krinock wrote:
> These scripts did this by inserting a signature comment and cursor position into each one. Before shipping, I'd do a Project Find for that signature comment to make sure I didn't forget any. I'd been very happy with this.
>
> But my scripts require that the current cursor position (%%%{PBXSelectionStart}%%%), and the text of the entire file be readable, insertable and replaceable from, say, Perl.
Well, if you used __LINE__ in your NSLog statements instead of reading the cursor position, then perhaps you wouldn't have to read anything in your script. Then for removing them, perhaps you could use regex search & replace based on your signature comment.
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden