Re: NSString vs. encoding

2009-09-18 Thread Johan Kool
Op 17 sep 2009, om 22:29 heeft Andrew Farmer het volgende geschreven: On 16 Sep 2009, at 22:55, Johan Kool wrote: Thanks so much!! That is indeed the case! I now use strunvis and it's all done in just 4 lines of code. (Well, except that I should still handle a returned error code.)

Re: NSString vs. encoding

2009-09-16 Thread Johan Kool
Op 16 sep 2009, om 22:14 heeft Joar Wingfors het volgende geschreven: On 16 sep 2009, at 21.38, Johan Kool wrote: I am parsing the output of a command line utility (mtree). Is mtree using strvis perhaps? Google seems to suggest that, but I'm not sure if that's true, or stil

Re: NSString vs. encoding

2009-09-16 Thread Johan Kool
Op 16 sep 2009, om 19:32 heeft Joar Wingfors het volgende geschreven: On 16 sep 2009, at 13.13, Johan Kool wrote: I have been trying many combinations of encodings/decodings, but without the intended result. I do know what NSString wants, but that's not what I have. I have strin

Re: NSString vs. encoding

2009-09-16 Thread Johan Kool
Op 16 sep 2009, om 12:44 heeft Greg Guerin het volgende geschreven: Johan Kool wrote: NSString *stringA = @"J\\303\\270ha\\314\\212n\\040i\\314\\210s\ \040Li\ \314\\200e\\314\\201\\306\\222"; NSLog(@"stringA %@ (expected Jøhån ïs Lìéƒ)", stringA); You're

Re: NSString vs. unicode encoding

2009-09-16 Thread Johan Kool
Op 16 sep 2009, om 11:31 heeft Shawn Erickson het volgende geschreven: On Tue, Sep 15, 2009 at 9:04 PM, Johan Kool wrote: Dear list, I need to work with strings as in stringA. (I don't have much choice, but to have it in a NSString at the start.) I want to have the readable o

Re: NSString vs. encoding

2009-09-16 Thread Johan Kool
Op 15 sep 2009, om 23:15 heeft Johan Kool het volgende geschreven: Op 15 sep 2009, om 22:26 heeft Stephen J. Butler het volgende geschreven: On Wed, Sep 16, 2009 at 12:10 AM, Johan Kool wrote: Op 15 sep 2009, om 21:50 heeft Jens Alfke het volgende geschreven: On Sep 15, 2009, at 9:04 PM

Re: NSString vs. unicode encoding

2009-09-15 Thread Johan Kool
Op 15 sep 2009, om 22:26 heeft Stephen J. Butler het volgende geschreven: On Wed, Sep 16, 2009 at 12:10 AM, Johan Kool wrote: Op 15 sep 2009, om 21:50 heeft Jens Alfke het volgende geschreven: On Sep 15, 2009, at 9:04 PM, Johan Kool wrote: NSString *stringA = @"hello\040

Re: NSString vs. unicode encoding

2009-09-15 Thread Johan Kool
Op 15 sep 2009, om 21:50 heeft Jens Alfke het volgende geschreven: On Sep 15, 2009, at 9:04 PM, Johan Kool wrote: NSString *stringA = @"hello\040world"; NSString *stringB = [NSString stringWithUTF8String:"hello \040world"] ; I'm confused. '\040' is a

NSString vs. unicode encoding

2009-09-15 Thread Johan Kool
Dear list, I need to work with strings as in stringA. (I don't have much choice, but to have it in a NSString at the start.) I want to have the readable output "hello world". NSString *stringA = @"hello\040world"; NSString *stringB = [NSString stringWithUTF8String:"hello\040world"] ; // T

Re: Why can't I name a property `tag'?

2008-07-10 Thread Johan Kool
filteredPosts = [[self filterPosts:postNodes WithTag:[[tagView itemAtRow:row] tag]] retain]; You don't tell the compiler what is returned by -(id)itemAtRow: so the compiler doesn't know wether to expect "you" or "your brother". You should tell it whom to expect and it won't complain an

Re: Allocating outlets from NIB file

2008-06-24 Thread Johan Kool
You do not allocate outlets. Outlets point to instances in your nib. These instances are instantiated(/allocated) when the nib is loaded. You usually set the File's Owner to be a your own subclass of NSWindowController. Next control-drag from the File's Owner icon to the window and the view

Re: Getting feedback from application

2008-04-16 Thread Johan Kool
Hello Parag, Is this the kind of functionality you were after: http://www.zathras.de/angelweb/sourcecode.htm#UKCrashReporter See UKFeedbackProvider and NiftyFeatures on that page... Johan --- http://www.johankool.nl/ ___ Cocoa-dev mailing list