Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
Yes. Both of my apps currently in the App Store only work in portrait on iPhone, and work in all orientations on iPad. The HIG never says you cannot do this.
@surlac, you can use NSOrderedSet any time you want a set of unique objects that stay in a certain order. It works like a set in that if you try to add an object that is already in the set it won't do anything. But, since it is ordered, it has array-like methods such as objectAtIndex:, and lastObject, etc.
for (NSNumber *number in fooArray) [string appendString:@"%@ ", number];
for (NSNumber *number in fooSet) [string appendString:@"%@ ", number];
for (NSNumber *number in fooOrderedSet) [string appendString:@"%@", number];
NSLog(@"Array (in order): %@", arrayString); NSLog(@"Set (in no particular order): %@", setString); NSLog(@"Ordered Set (in order): %@", orderedSetString);
NSLog(@"%@", [fooArray objectAtIndex:2]); NSLog(@"%@", [fooOrderedSet objectAtIndex:2]); NSLog(@"%@", [fooSet objectAtIndex:2]); // will crash here, since sets don't have an objectAtIndex: method
Outputs:
10 items in array, 4 items in set, and 4 items in ordered set Array (in order): 1 2 2 3 3 3 4 4 4 4 Set (in no particular order): 3 2 4 1 Ordered Set (in order): 1 2 3 4 2 3 ...Exception Raised...unrecognized selector...
I'm not actually at a Mac right now, so please excuse any typos or errors in the above code.