Re: Mixing C++ and Objective-C

2009-02-08 Thread Steve Wart
o distract from the useful discussions that generally take place here. Steve On Sun, Feb 8, 2009 at 5:42 PM, Peter N Lewis wrote: > At 12:29 -0800 7/2/09, Steve Wart wrote: > > It works fine in 10.5.6 with XCode 3.1 if I change the file type of >> BasicOpenGLView.m to sourceco

Re: Mixing C++ and Objective-C

2009-02-07 Thread Steve Wart
Solved, thanks to the archives. #ifdef __cplusplus extern "C" { #endif extern CFunctionHere #ifdef __cplusplus } #endif Cheers, Steve On Sat, Feb 7, 2009 at 12:29 PM, Steve Wart wrote: > I am trying to build an application that uses some C++ classes, based on > Apple's

Mixing C++ and Objective-C

2009-02-07 Thread Steve Wart
I am trying to build an application that uses some C++ classes, based on Apple's example Cocoa OpenGL application here: http://developer.apple.com/samplecode/CocoaGL/index.html#//apple_ref/doc/uid/DTS10004501 It works fine in 10.5.6 with XCode 3.1 if I change the file type of BasicOpenGLView.m to

Re: UINavigationItem backButtonTitle property is missing?

2008-10-04 Thread Steve Wart
Sorry about that. I should have checked the discussion thread. On Sat, Oct 4, 2008 at 9:23 AM, Roland King <[EMAIL PROTECTED]> wrote: > no iPhone discussions allowed here yet. > > > On Oct 4, 2008, at 11:47 PM, Steve Wart wrote: > > Hi, >> >

UINavigationItem backButtonTitle property is missing?

2008-10-04 Thread Steve Wart
Hi, I'm working through the iPhone UINavigationController tutorial and noticed that the class reference for UINavigationItem contains the following *backButtonTitle* The title to use when this item is represented by a back button on the navigation bar. @property(nonatomic, copy) NSString *backBu

Re: NSUInteger hash

2008-08-17 Thread Steve Wart
Hi Aaron, That's always a good question to ask. I'm porting a Smalltalk/OpenGL maze application I wrote a few years ago to Cocoa. The maze is initialized by creating a 2D matrix of Room objects which are separated by Wall objects. Every room has an ordered collection of walls which I've put into

Re: NSUInteger hash

2008-08-16 Thread Steve Wart
s own hash. I was looking in completely the wrong places. Steve On Sat, Aug 16, 2008 at 2:21 PM, Michael Ash <[EMAIL PROTECTED]> wrote: > On Sat, Aug 16, 2008 at 3:57 PM, Steve Wart <[EMAIL PROTECTED]> wrote: > > > What's the standard way of hashing non-object values

NSUInteger hash

2008-08-16 Thread Steve Wart
Hi all, I'm just getting started with Cocoa and I'm trying to implement hash and isEqual: methods according to the recommendations in the coding guidelines. To implement a hash method I would normally just hash the receiver's instance variables together and xor the result, but this only works if