Re: NSString and retain.

2009-05-12 Thread Drew Lawson
en many loops later, whenever I used the containing object next. What I didn't get is that it doesn't matter if the method creates, allocates, etc. It matters if the method name starts with "alloc," "create," etc. -- Drew Lawson| Pass

Re: Converting NSString to C++ std::string

2009-05-08 Thread Drew Lawson
possible that stringValue returns nil? Hmm, I had one other thought. There are several std::string constructors, depending on the parameter type. In ObjC++, is it unambiguous at compile time that the expression is "const char*"? -- Drew Lawson| We were taki

Re: NSXMLParser attributeDict enumeration

2009-04-27 Thread Drew Lawson
___ > > 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/Upd

Re: What is this error: error: expected specifier-qualifier-list

2009-04-17 Thread Drew Lawson
part is mostly "const" or "*" in various arangements. -- Drew Lawson| I'd like to find your inner child | and kick its little ass ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Re: warning for unsigned parameter, signed argument with NSUInteger

2009-04-14 Thread Drew Lawson
;ve been puzzled by this, but NSUInteger is a signed type: #if __LP64__ typedef long NSUInteger; #else typedef int NSUInteger; endif http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html -- Drew Lawson

Re: substring (or) CDATA XML PARSING?!

2009-04-10 Thread Drew Lawson
e set. Even when CDATA and character and entity references are preserved, NSXML treats them as no more than special-cased text nodes. So your data should be a text node as the sibling after , at least that's my reading of it. Try iterating over the nodes and logging the node type. It's

Re: Sqlite3

2009-04-09 Thread Drew Lawson
> to access the records, i can access. But after restarting the app > it fetches no record I don't know the sqlite details, but this sounds like a SQL transaction that isn't getting committed. Does the sqlite API auto-commit changes? Or do you have to do that explicitly? -- Drew Lawson

Re: Help with implementing delegates

2009-03-27 Thread Drew Lawson
inish: (BOOL) complete > > Note the removal of the colon between sender and didFinish. > > Also note your original is not illegal, so the compiler won't > complain about it. You just gave me a newbie headache. How is that original parsed? -- Drew