Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 21, 2008, 07:23 AM   #1
kamo
macrumors member
 
Join Date: Mar 2008
Aspen - rotate hardware

Hello,


I can't figure out how to enable hardware rotation for my app in Aspen. I looked though all the examples, none of those you can rotate either (in Aspen -> Hardware / Rotate Left or Right.)

Does anyone know how to enable this?


Thanks,
kamo
kamo is offline   0 Reply With Quote
Old Mar 21, 2008, 07:39 AM   #2
MacsAttack
macrumors 6502a
 
Join Date: Jul 2006
Location: Scotland
It may be one of the features that is not implemented in the Beta yet ***cough***Interface Builder***cough***.
__________________
Security: “You are coming to a sad realization. Cancel or Allow?”
PC: “…… Allow.”
MacsAttack is offline   0 Reply With Quote
Old Mar 21, 2008, 08:07 AM   #3
fishkorp
macrumors 68020
 
Join Date: Apr 2006
The app has to specifically allow for rotation. For example, the simulator will rotate in Safari, but not in most of the sample apps. There's code for that. I don't think we're allowed to post actual examples, are we? Doesn't that violate the terms you agreed to when downloading the SDK?
fishkorp is offline   0 Reply With Quote
Old Mar 21, 2008, 08:12 PM   #4
kamo
Thread Starter
macrumors member
 
Join Date: Mar 2008
Could you pm the code to me?
kamo is offline   0 Reply With Quote
Old Mar 21, 2008, 09:45 PM   #5
cazlar
macrumors 6502
 
Join Date: Oct 2003
Location: Sydney, Australia
I've played with this. You need to implement shouldRotateBlahBlahBlah: (sorry, no docs on this computer to get the proper name) in your view controller. All you need to do is add the method and return YES. One thing I found (and it took me a while to work this out) is that if you have a toolbar, you need to implement this in all view controllers run by that toolbar. Until I did that, nothing would rotate at all.

BTW, there's a WhichWayIsUp sample which shows a simple rotating view.
cazlar is offline   0 Reply With Quote
Old Mar 22, 2008, 10:00 AM   #6
kamo
Thread Starter
macrumors member
 
Join Date: Mar 2008
thanks cazlar
kamo is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Video Shows Discovery of Steve Jobs' Lisa Mouse Inside 30-Year-Old Aspen Time Tube MacRumors Mac Blog Discussion 37 Feb 19, 2014 09:55 PM
iphone 5c/5s Aspen Grove - Littleton CO gonzalo12345 iPhone Launch Meetups 1 Sep 20, 2013 07:52 AM
It's not about hardware. It's about software that runs hardware. stu00a iPad 7 Oct 24, 2012 04:03 PM
Steve Jobs's jokes in this 1983 talk at International Design Conference in Aspen booyahbooyah Apple, Industry and Internet Discussion 0 Oct 2, 2012 05:07 PM

Forum Jump

All times are GMT -5. The time now is 09:22 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC