Page 1 of 1

NSUInteger?

PostPosted: Mon Oct 18, 2010 7:32 pm
by udo.killermann
Board,

does anybody know how I can Dim a variable of type NSUInteger? This type is not a real Coca class but a typedef to "unsigned integer". I have a method to call that needs a NSUInteger in its signature.

Regards
Udo

Re: NSUInteger?

PostPosted: Thu Nov 04, 2010 2:30 pm
by berndnoetscher
udo.killermann wrote:Board,

does anybody know how I can Dim a variable of type NSUInteger? This type is not a real Coca class but a typedef to "unsigned integer". I have a method to call that needs a NSUInteger in its signature.

Regards
Udo


Udo,
what method? I suppose you refer to a declare statement of a Cocoa class? Thanks in advance.
I will add a conversion NSUInteger to the compiler then.

Re: NSUInteger?

PostPosted: Fri Nov 05, 2010 7:42 am
by udo.killermann
Bernd,

the signature of NSAttributedString is '- (NSDictionary *)attributesAtIndex:(NSUInteger)index effectiveRange:(NSRangePointer)aRange'. This presents two hurdles to the current version of OB. On the one hand the NSUInteger and on the other hand the NSRangePointer. Neither the one nor the other can be represented by a built in dataype of OB or a class available in Cocoa.
I think if you are at NSUInteger you should look up the other Cocoa pseudo classes that are actually preprocessor 'define' statements for built in C types and not types/classes of their own.

Enjoy your day
Udo

BTW: I saw KBasic bundled with a Mac developer magazine - congratulation ;)