Re: Challenge Chapter 8: sorting with key-path

2008-07-23 Thread Martijn
My guess is you should try personName.leng*th* ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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/Up

Re: Event-Driven XML Parsing and Entity References

2008-07-27 Thread Martijn
, thanks in advance. > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Uns

[iPhone] Search control like in App Store

2009-01-06 Thread Martijn van Exel
be a good idea. Is this a standard control in the iPhone SDK or is this something to implement from scratch? Any other suggestions on how to approach this UI challenge? Thanks, -- martijn van exel -+- mve...@gmail.com -+- http://www.schaaltreinen.nl/ ___

Re: [iPhone] Search control like in App Store

2009-01-06 Thread Martijn van Exel
Thanks - I looked into the TableSearch sample project and it seems to give me enough pointers to implement what I want.I'm also learning a lot from the UICatalog sample. I tend to stay away from Interface Builder, as is provides more confusion than solutions, IMO. Martijn On Wed, Jan 7, 20

feed an NSCharacterSet to numberOfRowsInSection delegate method?

2009-01-07 Thread Martijn van Exel
rns a NSCharacterSet and not an NSArray, is there a way (without doing an iteration) to turn a NSCharacterSet into an NSArray of charachters? Martijn -- martijn van exel -+- mve...@gmail.com -+- http://www.schaaltreinen.nl/ ___ Cocoa-dev mailing list (

Re: feed an NSCharacterSet to numberOfRowsInSection delegate method?

2009-01-07 Thread Martijn van Exel
On Wed, Jan 7, 2009 at 15:19, Graham Cox wrote: > > On 8 Jan 2009, at 12:26 am, Martijn van Exel wrote: > > But [NSCharacterSet uppercaseLetterCharacterSet] returns a NSCharacterSet >> and not an NSArray, is there a way (without doing an iteration) to turn a >> NSCharact

[iPhone] Update table cell text on selection in other view

2009-01-08 Thread Martijn van Exel
dicator; if(delegate.NaamGeselecteerdeSoort == @"" || delegate.NaamGeselecteerdeSoort == nil) cell.text = @"Nog niet gekozen"; else cell.text = delegate.NaamGeselecteerdeSoort; cell.selectionStyle = UITableViewCellSelectionStyleBlue; .. but it doesn't. Do I need to

Re: [iPhone] [SOLVED] Update table cell text on selection in other view

2009-01-08 Thread Martijn van Exel
Well, I figured it out, I need to put a [self.tableView reloadData]; in the viewWillAppear handler. Now it works fine. Thanks! Martijn On Thu, Jan 8, 2009 at 13:11, Martijn van Exel wrote: > Hi all, > > I have a UITableView with a cell that the user taps to select an item from

[XCode] Generating method stubs

2009-01-09 Thread Martijn van Exel
Hi all, Coming from a .NET/Visual Studio environment, I got used to some conveniences that I do not find in XCode. For example, when you define a class that should conform to a certain protocol, isn't there a way to generate stubs for all the methods defined in that protocol? Thanks, -- ma

NSComparisonResult, 'double wildcard'

2009-01-12 Thread Martijn van Exel
r. Can I implement this using a NSComparisonResult? Thanks, -- martijn van exel -+- mve...@gmail.com -+- http://www.schaaltreinen.nl/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: [SOLVED] NSComparisonResult, 'double wildcard'

2009-01-12 Thread Martijn van Exel
(range.length > 0) [soortenFiltered addObject:cellTitle]; } The first line is to prevent NSRangeExceptions when a very short string enters the loop as comparison base. Thanks, Martijn -- martijn van exel -+- mve...@gmail.com -+- http://www.schaaltreinen.nl/ Op 12 jan 2009

NSXMLNode and NSXMLElement

2009-01-20 Thread Martijn van Exel
into NSXMLElement objects and then traverse the array that the attributes method of NSXMLElement yields. This somehow does not feel right. Is there a better way, given this bit of XML inside an NSXMLNode, to deserialize the attribute values in the different nodes? -- martijn van exel -+- mve

Logical and - second operator evaluated?

2009-03-01 Thread Martijn van Exel
s not the case in (Obj)C? -- martijn van exel -+- mve...@gmail.com -+- http://www.schaaltreinen.nl/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderat

Re: Logical and - second operator evaluated?

2009-03-01 Thread Martijn van Exel
On Sun, Mar 1, 2009 at 21:34, Clark Cox wrote: > On Sun, Mar 1, 2009 at 12:06 PM, Martijn van Exel > wrote: > > Hi devs, > > > > I can't seem to get away with > >if(timer!=nil && [timer isValid]) [timer invalidate]; > > if the tim

Re: Logical and - second operator evaluated?

2009-03-01 Thread Martijn van Exel
On Sun, Mar 1, 2009 at 22:10, Shawn Erickson wrote: > On Sun, Mar 1, 2009 at 12:59 PM, Martijn van Exel > wrote: > > [...] > > > * The method invoked by the first timer also dismisses the UIActionSheet. > > * In the didDismissWithButtonIndex callback, the two time

NSXMLParser attributeDict enumeration

2009-04-27 Thread Martijn van Exel
#x27;'. I guess it wouldn't, because I'm casting an (id) to a pointer to a double I think, but I'm not sure how I should be doing this. martijn van exel -+- mve...@gmail.com -+- http://www.schaaltreinen.nl/ ___ Cocoa-dev mailing list

Re: NSXMLParser attributeDict enumeration

2009-04-27 Thread Martijn van Exel
On Mon, Apr 27, 2009 at 19:05, Quincey Morris wrote: > On Apr 27, 2009, at 08:10, Martijn van Exel wrote: > >currentNode.lat = (double)[attributeDict objectForKey:key]; >> ... >> Member 'lat' is a double. The above does not work. 'Pointer value