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 Search Today's Posts Mark Forums Read

 
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.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applescript on object cyleigh OmniGraffle Extras 2 2011-02-14 07: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 11:27 AM
Selecting one object behind another object grewt OmniGraffle General 2 2008-06-16 12:43 PM
Rotate an object MrNiceGuy OmniGraffle General 2 2008-03-06 07:15 AM
Snap to object link OmniGraffle General 0 2008-01-18 11:56 AM


All times are GMT -8. The time now is 11:35 PM.


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