The efficiency of swapping endianness on an iPhone?
Hi, I'm currently writing an app for iphone that downloads large tables of text and images , and my server outputs big endian. How significant would the extra processing be to convert to small endian on the iPhone? I'm sure most of you would recommend doing the conversion on the server side, but the guy in charge of the server is having time off, so looking at alternative possibilities. ___ 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/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
global UIColor
I'm setting up my constants in my app, and have come across a problem. I wish to have a standard UIColor to use for all titles in my app but I get the error "error: initializer element is not constant" and for obvious reasons , but my question is: How am I 'supposed' to implement a single global UIColor? #import "XXConstants.h" @implementation XXConstants const NSString *const1 = @"MyString"; const int const2 = 111; UIColor * const3 = [UIColor colorWithRed:.11 green:.11 blue:.11 alpha: 1]; //the offender @end ___ 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/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Best method of communicating with binary java DataOutputStream on iPhone?
Data shall be obtained via http as utf-8 served by Java DataOutputStream. The data consists of int's and utf-8 strings Other than iterating through byte by byte, does cocoa have any convenience methods to communicate or extract such data? Speed of data transfer is of high priority, what would the impact be if I communicated via xml or other recommended protocol instead? ___ 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/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Reading from online Byte Array to UITableview best method?
I wish to dynamically load (from URL) byte array data, convert to cocoa datatypes, and use in an UITableview. So many ways to skin a cat, so before I proceed I was wondering what methods you would recommend for the job? ___ 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/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com