NSURL creation problem with colon: a partial workaround

2008-12-18 Thread Jérome Laurens
Hi list, I have a relative path with colons "file:test", and I would like to create a NSURL relative to a given base URL "file://localhost/root/". This does not work as expected. Consider the simple URL creation method NSURL * url1 = [NSURL fileURLWithPath:@"/root/file:test"]; The url is pr

Unsupported type encoding spec 'b' in NSGetSizeAndAlignment

2008-09-13 Thread Jérome Laurens
Hi list, I am on 10.5 and I often get exceptions like NSExceptionHandler has recorded the following exception: NSInvalidArgumentException -- NSGetSizeAndAlignment(): unsupported type encoding spec 'b' at 'b1b1b1b1^{PlatformKeyboardEvent} {String = {RefPtr < WebCore ::StringImpl>=^{String

Re: wordRangeForRange implememtation

2008-05-11 Thread Jérome Laurens
Le 11 mai 08 à 04:42, Ali Ozer a écrit : To extract a word range from a string, it may be easier to use something like NSScanner: // Defining the words NSCharacterSet *validWordSet = [NSCharacterSet alphanumericCharacterSet]; // Or however you want to define words NSCharacterSet *wordBre