Re: NSPredicate test : build fail

2016-03-11 Thread Niels Grewe
fore > the last commit on base. > > > GUI failes to build at all, with an error related to NSPredicate : > > Compiling file NSObjectController.m ... > In file included from NSObjectController.m:31: > /GNUstep/System/Library/Headers/Foundation/NSPredicate.h:41:82: error: type &

NSPredicate test : build fail

2016-03-11 Thread Bertrand Dekoninck
with a snapshot of base downloaded yertersday before the last commit on base. GUI failes to build at all, with an error related to NSPredicate : Compiling file NSObjectController.m ... In file included from NSObjectController.m:31: /GNUstep/System/Library/Headers/Foundation/NSPredicate.h:41:82: error

Bug in NSPredicate?

2014-03-03 Thread Mathias Bauer
Hi dear list members, IMHO the following code in NSPredicate.m is wrong: (line 944 ff.) NSString *regex; /* The right hand is a pattern with '?' meaning match one character, * and '*' meaning match zero or more characters, so translate that * into a

Re: Bug in NSPredicate?

2014-03-03 Thread Richard Frith-Macdonald
only if the replacements shown above are removed. So the stringByReplacingOccurrencesOfString calls must replace only those * or ? in the string that are not escaped. Any objections? I'm not familiar with NSPredicate, but ues, it sounds like OSX supports backslashes for escaping wildcards

Bug in NSPredicate _evaluateLeftValue:rightValue:object implementation

2014-02-13 Thread Mathias Bauer
Hi dear list members, I came across the following code in NSPredicate.m: ( it's in - (BOOL) _evaluateLeftValue: (id)leftResult rightValue: (id)rightResult object: (id)object line 968ff.) case NSEndsWithPredicateOperatorType: {

Re: Bug in NSPredicate _evaluateLeftValue:rightValue:object implementation

2014-02-13 Thread Richard Frith-Macdonald
On 13 Feb 2014, at 15:25, Mathias Bauer mathias_ba...@gmx.net wrote: Hi dear list members, I came across the following code in NSPredicate.m: ( it's in - (BOOL) _evaluateLeftValue: (id)leftResult rightValue: (id)rightResult object: (id)object line

Re: Filter array using NSPredicate

2010-10-05 Thread Koh Nyap-Hong
Hi, I prefer the HOM approach, more OO-ish. I will try it up. Thanks for the info. On Tue, Oct 5, 2010 at 2:44 AM, Niels Grewe niels.gr...@halbordnung.dewrote: On Tue, Oct 05, 2010 at 12:07:33AM +0800, Koh Nyap-Hong wrote: Yes, basically what I want to do with NSPredicate can actually

Re: Filter array using NSPredicate

2010-10-05 Thread David Chisnall
On 5 Oct 2010, at 09:58, Koh Nyap-Hong wrote: Hi, I prefer the HOM approach, more OO-ish. I will try it up. Thanks for the info. Niels wrote a detailed blog entry about the HOM stuff in EtoileFoundation here: http://etoileos.com/news/archive/2009/07/02/0217/ I've also written an

Re: Filter array using NSPredicate

2010-10-04 Thread Richard Frith-Macdonald
On 3 Oct 2010, at 14:29, Koh Nyap-Hong wrote: Hi List, I with to filter array using NSPredicate (seems a lot more easier than while loop with NSEnumerator), after read through some cocoa examples online, I run a simple test using the following codes: NSArray *pitches = [NSArray

Re: Filter array using NSPredicate

2010-10-04 Thread Koh Nyap-Hong
Hi Richard, Thanks for the reply. I have modified third statement with 'description' replaces 'SELF' and removed the single quote and tested it is actually working. Yes, basically what I want to do with NSPredicate can actually achieved using the traditionally way of while/for loop. However I

Re: Filter array using NSPredicate

2010-10-04 Thread David Wetzel
, that will not work as expected. But I am currently using EOF/GDL on GNUstep and NSPredicate only on the iPhone. Cheers Dave ___ Discuss-gnustep mailing list Discuss-gnustep@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Re: Filter array using NSPredicate

2010-10-04 Thread Niels Grewe
On Tue, Oct 05, 2010 at 12:07:33AM +0800, Koh Nyap-Hong wrote: Yes, basically what I want to do with NSPredicate can actually achieved using the traditionally way of while/for loop. However I was recently impressed by functional programming way of filtering array/list, I would like to try

NSPredicate

2008-10-31 Thread Samantha Rahn
What types of syntax can and cannot be used in NSPredicate? When I use companyName CONTAINS 'Corp' I get: NAME:NSInvalidArgumentException REASON:Format string contains extra characters: companyName CONTAINS 'Corp' ___ Discuss-gnustep

Re: NSPredicate

2008-10-31 Thread Fred Kiefer
Samantha Rahn wrote: What types of syntax can and cannot be used in NSPredicate? When I use companyName CONTAINS 'Corp' I get: NAME:NSInvalidArgumentException REASON:Format string contains extra characters: companyName CONTAINS 'Corp' I had a look at the source code

Re: NSPredicate

2008-10-31 Thread Richard Frith-Macdonald
On 31 Oct 2008, at 20:20, Fred Kiefer wrote: Samantha Rahn wrote: What types of syntax can and cannot be used in NSPredicate? When I use companyName CONTAINS 'Corp' I get: NAME:NSInvalidArgumentException REASON:Format string contains extra characters: companyName CONTAINS 'Corp

Re: NSPredicate

2008-10-31 Thread Fred Kiefer
Richard Frith-Macdonald wrote: On 31 Oct 2008, at 20:20, Fred Kiefer wrote: Samantha Rahn wrote: What types of syntax can and cannot be used in NSPredicate? When I use companyName CONTAINS 'Corp' I get: NAME:NSInvalidArgumentException REASON:Format string contains extra

Re: NSPredicate bug (Re: Using code from Cocotron)

2007-06-14 Thread Fred Kiefer
Richard, can you help us on this? Yen-Ju Chen wrote: Just confirm that NSPredicate works except the %d. But it is not a big issue and can easily work around. My current idea for this problem is to pre-parse the format string for the va_list case and store the arguments in an NSArray

Re: NSPredicate bug (Re: Using code from Cocotron)

2007-06-13 Thread Yen-Ju Chen
at the %d problem. Thanx. I will try again later. Just confirm that NSPredicate works except the %d. But it is not a big issue and can easily work around. Thanx. Yen-Ju Yen-Ju Cheers, Fred ___ Discuss-gnustep mailing list Discuss

Re: NSPredicate bug (Re: Using code from Cocotron)

2007-06-11 Thread Fred Kiefer
Yen-Ju Chen wrote: On 6/9/07, Fred Kiefer [EMAIL PROTECTED] wrote: There are plenty of other problems with predicates that your tests uncovered. For example we don't support ==, but have =. Which of them should we have? Both? Fixed Also the IN operator will only work for strings, not for a

Re: NSPredicate bug (Re: Using code from Cocotron)

2007-06-09 Thread Fred Kiefer
Yen-Ju Chen wrote: On 5/23/07, Fred Kiefer [EMAIL PROTECTED] wrote: Triggered by this mail, I set down and wrote some code for NSPredicate and NSExpression to make these classes (and their subclasses) at least usable. They are still far away from being complete, but it would be nice

Re: NSPredicate bug (Re: Using code from Cocotron)

2007-06-09 Thread Yen-Ju Chen
On 6/9/07, Fred Kiefer [EMAIL PROTECTED] wrote: Yen-Ju Chen wrote: On 5/23/07, Fred Kiefer [EMAIL PROTECTED] wrote: Triggered by this mail, I set down and wrote some code for NSPredicate and NSExpression to make these classes (and their subclasses) at least usable. They are still far away

NSPredicate bug (Re: Using code from Cocotron)

2007-06-08 Thread Yen-Ju Chen
On 5/23/07, Fred Kiefer [EMAIL PROTECTED] wrote: Triggered by this mail, I set down and wrote some code for NSPredicate and NSExpression to make these classes (and their subclasses) at least usable. They are still far away from being complete, but it would be nice if somebody actually tested

NSPredicate

2007-03-24 Thread Romain
Hello, It seems that NSPredicate lacks a method called evaluateWithObject: Without this method, it's impossible to perform filtering. Are they any plans to implement this method ? PS: I am completely new here so forgive me if I am missing something in the code

NSPredicate?

2006-05-08 Thread Fred Kiefer
Where is this class, NSPredicate, currently situated in GNUstep. I searched the old mailing list entries and found that Helge claimed it belongs into Core Data, while others did see it in Foundation. What I tried to do was compile the GSCoreData (http://gscoredata.nongnu.org) implementation

Re: NSPredicate?

2006-05-08 Thread Helge Hess
On 8. Mai 2006, at 15:33 Uhr, Fred Kiefer wrote: Where is this class, NSPredicate, currently situated in GNUstep. I searched the old mailing list entries and found that Helge claimed it belongs into Core Data, while others did see it in Foundation. Thats not entirely correct :-) The header

Re: NSStream and friends + NSPredicate, NSExpression and others

2006-02-14 Thread hns
Richard Frith-Macdonald schrieb: On 3 Feb 2006, at 21:24, [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] schrieb: I'm very interested in that, as I've been wanting to restructure to get all the I/O code using a single underlying API for a few years now, but never had the time to do it.

Re: NSStream and friends + NSPredicate, NSExpression and others

2006-02-14 Thread Andrew Sveikauskas
On Tue, Feb 14, 2006 at 02:04:36AM -0800, [EMAIL PROTECTED] wrote: This could especially be important for the mingw32 API which might have its special issues. I personally have no experience with that so I have used the standard POSIX socket(), select(), connect(), listen() calls - assuming a

Re: NSStream and friends + NSPredicate, NSExpression and others

2006-02-13 Thread Derek Zhou
Richard Frith-Macdonald [EMAIL PROTECTED] writes: I'm very interested in that, as I've been wanting to restructure to get all the I/O code using a single underlying API for a few years now, but never had the time to do it. Of course, it *must* work on mingw32 (ie native windows API) and be

Re: NSStream and friends + NSPredicate, NSExpression and others

2006-02-09 Thread hns
[EMAIL PROTECTED] schrieb: I am currently also working on that in my efforts to make mySTEP more compatible to the 10.4 documentation of Foundation.framework. I hope that I have this (together with the recently mentioned NSPredicate/NSExpression code) ready for publication within 4 weeks

Re: NSPredicate and related classes ?

2006-01-12 Thread Sašo Kiselkov
Quoting [EMAIL PROTECTED]: Neither... NSPredicate and NSExpression are defined in Foundation - they simply describe a query. They evaluate on NSObjects (NSString, NSArray, NSNumber, NSDictionary etc.). A reference is http://cocoadevcentral.com/articles/86.php (page 14). Storage (Core

Re: NSPredicate and related classes ?

2006-01-11 Thread hns
Neither... NSPredicate and NSExpression are defined in Foundation - they simply describe a query. They evaluate on NSObjects (NSString, NSArray, NSNumber, NSDictionary etc.). A reference is http://cocoadevcentral.com/articles/86.php (page 14). Storage (Core Data) is not handled by Foundation

Re: NSPredicate and related classes ?

2006-01-10 Thread Yen-Ju Chen
On 9 Jan 2006 01:51:00 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: [snip] Yes, I am currently working to add this to mySTEP. When it works, it needs to be integrated back into the GNUstep mainstream. Then I am curious which backing store you use ? SQLite or CoreData-like library ?

Re: NSPredicate and related classes ?

2006-01-09 Thread hns
Yen-Ju Chen schrieb: Hi, I just wonder whether anyone works on NSPredicate and related classes from Apple's Foundation ? Thanx. Yen-Ju Yes, I am currently working to add this to mySTEP. When it works, it needs to be integrated back into the GNUstep mainstream. -- hns

Re: NSPredicate

2005-10-24 Thread Sašo Kiselkov
Quoting Quentin Mathé [EMAIL PROTECTED]: Le 23 oct. 05 à 19:31, Alex Perez a écrit : Enrico Sersale wrote: So, the question is: is somebody working at NSPredicate (and at the other NSMetadata* classes)? Quentin has, AFAIR. That's true for NSPredicate, but they are still

Re: NSPredicate

2005-10-24 Thread Helge Hess
On Oct 24, 2005, at 10:46, Sašo Kiselkov wrote: BTW: I can't stuff NSPredicate into GSCoreData, since it's a Foundation class, not Core Data. I think this stuff is actually in CoreData, just like Foundation/NSURLRequest is in WebKit and not available w/o it. Some of the newer OSX framework

NSPredicate

2005-10-23 Thread Enrico Sersale
. But NSMetadataQuery needs NSPredicate and I think that I can't write it. So, the question is: is somebody working at NSPredicate (and at the other NSMetadata* classes)? ___ Discuss-gnustep mailing list Discuss-gnustep@gnu.org http://lists.gnu.org/mailman/listinfo

Re: NSPredicate

2005-10-23 Thread Alex Perez
Enrico Sersale wrote: So, the question is: is somebody working at NSPredicate (and at the other NSMetadata* classes)? Quentin has, AFAIR. ___ Discuss-gnustep mailing list Discuss-gnustep@gnu.org http://lists.gnu.org/mailman/listinfo/discuss

Re: NSPredicate

2005-10-23 Thread Yen-Ju Chen
On 10/23/05, Enrico Sersale [EMAIL PROTECTED] wrote: [snip] So, the question is: is somebody working at NSPredicate (and at the other NSMetadata* classes)? We have a search engine based on Apache Lucene in Etoile. Therefore, the NSPredicate and related classes are a big welcome. Yen-Ju

Re: NSPredicate

2005-10-23 Thread Quentin Mathé
Le 23 oct. 05 à 19:31, Alex Perez a écrit : Enrico Sersale wrote: So, the question is: is somebody working at NSPredicate (and at the other NSMetadata* classes)? Quentin has, AFAIR. That's true for NSPredicate, but they are still unfinished, I have sent my last version to Saso