• 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: filtering the values in an NSTableColumn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: filtering the values in an NSTableColumn


  • Subject: Re: filtering the values in an NSTableColumn
  • From: Kyle Sluder <email@hidden>
  • Date: Fri, 10 Aug 2012 11:21:47 -0700

On Fri, Aug 10, 2012, at 10:44 AM, Ken Thomases wrote:
> What?  There's no requirement that one use NSNumbers.

You're correct, but I certainly didn't expect that! From the Predicate
Programming Guide:

"The format string supports printf-style format arguments such as %x
(see “Formatting String Objects”). Two important arguments are %@ and
%K."

But what can "%x" possibly mean in this context? Do you need to provide
a hex-formatted C string or an integer? If the latter, how does this
format specifier differ from "%d"?

In practice, it looks like "%x" and "%d" are synonymous, and they mean
you can provide a numeric argument. This is just an additional way this
method differs from printf and NSLog, where %K isn't a valid format
specifier.

The Predicate Programming Guide needs to stop relying on half-true
references to similar pieces of functionality when defining its grammar.
It's been a woefully underspecified document for years.
<rdar://problem/12076911> (Predicate Format String Syntax document is
underspecified)

--Kyle Sluder

_______________________________________________

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: 
 >filtering the values in an NSTableColumn (From: Koen van der Drift <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Koen van der Drift <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Ken Thomases <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Koen van der Drift <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Keary Suska <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Koen van der Drift <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Fritz Anderson <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Koen van der Drift <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Fritz Anderson <email@hidden>)
 >Re: filtering the values in an NSTableColumn (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Formatting a set of NSDecimalNumber values
  • Next by Date: Re: Formatting a set of NSDecimalNumber values
  • Previous by thread: Re: filtering the values in an NSTableColumn
  • Next by thread: Re: filtering the values in an NSTableColumn
  • Index(es):
    • Date
    • Thread