NSUInteger?

Coding Questions, IDE related or anything else

NSUInteger?

Postby udo.killermann » Mon Oct 18, 2010 7:32 pm

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
--------------
MacBook (2GHz, 4 GByte) - Lion (10.7.3)
started Objective Basic coding in April 2010 - still enjoy it ;-)
udo.killermann
 
Posts: 247
Joined: Thu Apr 08, 2010 6:46 am
Location: Hannover, Germany

Re: NSUInteger?

Postby berndnoetscher » Thu Nov 04, 2010 2:30 pm

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.
berndnoetscher
Site Admin
 
Posts: 280
Joined: Fri Feb 20, 2009 11:58 am

Re: NSUInteger?

Postby udo.killermann » Fri Nov 05, 2010 7:42 am

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 ;)
--------------
MacBook (2GHz, 4 GByte) - Lion (10.7.3)
started Objective Basic coding in April 2010 - still enjoy it ;-)
udo.killermann
 
Posts: 247
Joined: Thu Apr 08, 2010 6:46 am
Location: Hannover, Germany


Return to Objective-Basic (Xcode 3)

Who is online

Users browsing this forum: No registered users and 1 guest

cron