FROM : slasktrattenator
DATE : Fri Jan 11 11:46:15 2008
Convert both strings to uppercase and stick with ==.
That said, I don't see why like[c] wouldn't do the job. The variable
is being quoted by the parser so wildcards don't count, no?
On Jan 11, 2008 1:55 AM, Ken Thomases <<email_removed>> wrote:
> On Jan 8, 2008, at 7:53 PM, mmalc crawford wrote:
>
> > On Jan 8, 2008, at 4:22 PM, Ken Thomases wrote:
> >
> >>> It's not clear what you're trying to achieve.
> >>> In what way does the LIKE operator not do what you want?
> >>
> >> The concern I would have would be if his "newFullPath" variable
> >> contains characters which would be interpreted by the LIKE
> >> operator as wildcards. It's not as uncommon as one might guess
> >> that a file path contains "*" or "?".
> >>
> > You can escape the wildcards...
>
> That's not actually documented on the Predicate Format String Syntax
> or BNF Definition of Cocoa Predicates pages. There's something about
> escape sequences for numbers, but not about string contents. I
> suppose it's likely that escapes are supported for meta-characters.
>
> I suppose some trial and error would reveal if it works. I'm not
> that invested. ;)
>
> -Ken
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>
DATE : Fri Jan 11 11:46:15 2008
Convert both strings to uppercase and stick with ==.
That said, I don't see why like[c] wouldn't do the job. The variable
is being quoted by the parser so wildcards don't count, no?
On Jan 11, 2008 1:55 AM, Ken Thomases <<email_removed>> wrote:
> On Jan 8, 2008, at 7:53 PM, mmalc crawford wrote:
>
> > On Jan 8, 2008, at 4:22 PM, Ken Thomases wrote:
> >
> >>> It's not clear what you're trying to achieve.
> >>> In what way does the LIKE operator not do what you want?
> >>
> >> The concern I would have would be if his "newFullPath" variable
> >> contains characters which would be interpreted by the LIKE
> >> operator as wildcards. It's not as uncommon as one might guess
> >> that a file path contains "*" or "?".
> >>
> > You can escape the wildcards...
>
> That's not actually documented on the Predicate Format String Syntax
> or BNF Definition of Cocoa Predicates pages. There's something about
> escape sequences for numbers, but not about string contents. I
> suppose it's likely that escapes are supported for meta-characters.
>
> I suppose some trial and error would reveal if it works. I'm not
> that invested. ;)
>
> -Ken
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>
| Related mails | Author | Date |
|---|---|---|
| Frank Reiff | Jan 7, 21:29 | |
| mmalc crawford | Jan 7, 23:01 | |
| Ken Thomases | Jan 7, 23:22 | |
| Frank Reiff | Jan 8, 17:03 | |
| mmalc crawford | Jan 8, 17:33 | |
| Ken Thomases | Jan 9, 01:22 | |
| mmalc crawford | Jan 9, 02:53 | |
| Ken Thomases | Jan 11, 01:55 | |
| slasktrattenator | Jan 11, 11:46 | |
| Frank Reiff | Jan 11, 17:22 |






Cocoa mail archive

