• 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: NSAssert with format string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAssert with format string


  • Subject: Re: NSAssert with format string
  • From: Luke Hiesterman <email@hidden>
  • Date: Wed, 16 Nov 2011 19:44:47 +0000
  • Thread-topic: NSAssert with format string

On Nov 16, 2011, at 11:40 AM, Matt Neuburg wrote:

> Luke:
>
> (1) Thx!
>
> (2) Any memory of when that happened? Just curious, no biggie.

Snow Leopard for OS X. I think iOS 4 in my land.

>
> (3) Want me to file a bug on the docs?

Go for it.

Luke

>
> m.
>
> On Nov 16, 2011, at 11:38 AM, Luke Hiesterman wrote:
>
>> Yes, NSAssert now accepts varargs for formatted strings.
>>
>> Luke
>>
>> On Nov 16, 2011, at 11:33 AM, Matt Neuburg wrote:
>>
>>> The docs say that NSAssert takes a condition and a string, and if you want a format string you have to use one of NSAssert's relative, such as NSAssert1, according to the number of format specifiers. But experimentation shows that NSAssert(0, @"%@", @"testing") does work. Are the docs wrong - can I just use format specifiers freely with NSAssert, and not bother with NSAssert1 and so forth? Thx - m.
>>>
>>> --
>>> matt neuburg, phd = email@hidden, http://www.apeth.net/matt/
>>> pantes anthropoi tou eidenai oregontai phusei
>>> Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
>>> Programming iOS 4! http://www.apeth.net/matt/default.html#iosbook
>>> RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
>>> TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
>>>
>>>
>>> _______________________________________________
>>>
>>> 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
>>
>
> --
> matt neuburg, phd = email@hidden, http://www.apeth.net/matt/
> pantes anthropoi tou eidenai oregontai phusei
> Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
> Programming iOS 4! http://www.apeth.net/matt/default.html#iosbook
> RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
> TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
>
>

_______________________________________________

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: 
 >NSAssert with format string (From: Matt Neuburg <email@hidden>)
 >Re: NSAssert with format string (From: Luke Hiesterman <email@hidden>)
 >Re: NSAssert with format string (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: NSAssert with format string
  • Next by Date: Re: About iVars declaration and property
  • Previous by thread: Re: NSAssert with format string
  • Next by thread: Re: Locking an NSDocument
  • Index(es):
    • Date
    • Thread