• 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: No longer use NSLog() in Xcode 4?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >No longer use NSLog() in Xcode 4? (From: Jerry Krinock <email@hidden>)
 >Re: No longer use NSLog() in Xcode 4? (From: David Duncan <email@hidden>)
 >Re: No longer use NSLog() in Xcode 4? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: No longer use NSLog() in Xcode 4?
  • Next by Date: Re: No longer use NSLog() in Xcode 4?
  • Previous by thread: Re: No longer use NSLog() in Xcode 4?
  • Next by thread: Re: No longer use NSLog() in Xcode 4?
  • Index(es):
    • Date
    • Thread