The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > Developer > Omni Frameworks
FAQ Members List Calendar Today's Posts

 
Rezise, Move object with Grips? Thread Tools Search this Thread Display Modes
I've been looking in the framework to see if you provided the code to be able to handle moving and resizing of view/objects.

Similar to the OmniGraffle when you have an object on the screen, tap it and you get the grips that will allow you to resize and move the object?

Thanks,
Scott<-
 
I've been working on an example app (for iPad) that is a much-simplified version of Graffle. However, so far it doesn't have resize handles. It's more focused on getting all of the gesture recognizers working together -- selecting, moving, panning, zooming, rotating, nudging, etc. We'll add this example project to the frameworks soon.

Once you have gestures set up, handles are just a matter of hit-testing (did the user start the gesture on a handle?). You can do the calculation yourself or use subviews with userInteractionEnabled=YES. You should try to maintain a 40px by 40px tappable target area for each handle, even though the handle graphics will most likely be a lot smaller than that.

As far as I know, we don't have any framework code specifically for handles. That's because the details vary a lot between apps. For example, GraphSketcher's handles are a lot different from Graffle's, because the objects being manipulated are different.
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Applescript on object cyleigh OmniGraffle Extras 2 2011-02-14 06:54 PM
How to move project into folder? [A: Tap Edit, tap item, tap "move" button in Tbar.] Avis OmniFocus for iPhone 4 2010-07-07 10:27 AM
Selecting one object behind another object grewt OmniGraffle General 2 2008-06-16 11:43 AM
Rotate an object MrNiceGuy OmniGraffle General 2 2008-03-06 06:15 AM
Snap to object link OmniGraffle General 0 2008-01-18 10:56 AM


All times are GMT -8. The time now is 07:20 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.