Jump to content

- - - - -

SCDebugLog suggestion

  • Please log in to reply
1 reply to this topic

#1 Daniel Boice

Daniel Boice

    Advanced Member

  • STV 5.0 Std
  • PipPipPipPipPip
  • 178 posts
  • LocationPhoenix, AZ
Reputation: 17

Posted 25 October 2013 - 06:21 PM

Hey Tarek,


Hope you are doing well.  I have been using 3.3.0 for a few weeks and all is going well.  Nice job!  


I had one suggestion you might consider.  This is something I have added in the past, to avoid the nslog in production if something comes up.  I occasionally get warnings for things I don't need.  For example, when I create a SCCustomPropertyDefinition and add that to a SCPropertyGroup, I get a STV warning that it does not exist in the object. Am I doing something incorrectly?


My solution to suppress the warning has been:





/* SCDebugLog definition               */


#ifdef DEBUG

#define SCDebugLog(...) NSLog(@"**STV** %@", [NSString stringWithFormat:__VA_ARGS__])


#define SCDebugLog(...)







  • VewSnigninero4f and Adjuramum like this

#2 ozie



  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 526 posts
  • LocationAustralia
Reputation: 169

Posted 25 October 2013 - 07:46 PM

how about some code for the custom def thats giving the warning.. might be able to see whats going on

P.S. I hate Swift.. don't talk Swift.. Too old school to learn yet another programming language.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users