The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   Omni Frameworks (http://forums.omnigroup.com/forumdisplay.php?f=16)
-   -   OF (iPad) add/edit project/action dialog (http://forums.omnigroup.com/showthread.php?t=25374)

CrisB 2012-09-05 12:43 PM

OF (iPad) add/edit project/action dialog
 
I'm having a first look through the Omni Frameworks. There's a lot there to trawl through.

Does anyone know if the add/edit item dialog in the iPad build of OF is created using the OG frameworks, and if so, which bits? I particularly like the vertical tab bar, and had been thinking of building something similar for my own use. But if there's code in the frameworks I can learn something from, all the better.

Jim Correia 2012-09-09 11:35 PM

[QUOTE=CrisB;114256]Does anyone know if the add/edit item dialog in the iPad build of OF is created using the OG frameworks, and if so, which bits? I particularly like the vertical tab bar, and had been thinking of building something similar for my own use. But if there's code in the frameworks I can learn something from, all the better.[/QUOTE]

Hi Cris,

That particular chunk of code isn't part of our public frameworks.

The editor was written to target iOS 3.2 (before UIViewController supported containment) —*we might architect things differently if we were started from scratch today.

The vertical tabs in the item editor code doesn't feel all that interesting. (It probably has dependencies on other OmniFocus iPad code, and we haven't needed it elsewhere yet.)

If there are questions I can answer to help get you started, I'm happy to help.

There is an array of tab buttons that we lay out vertically. They overlap each other slightly, and the selected on has the highest z-order.

There's also a container view. When a tab button is pressed, we swap the content of the container view with a cross fade animation.

—Jim

CrisB 2012-09-10 03:11 AM

[QUOTE=Jim Correia;114363]Hi Cris,
That particular chunk of code isn't part of our public frameworks.
[/QUOTE]

Right -- I wasn't necessarily expecting it to be so. Just checking as I'm no UIkit maven myself, and having seen something very close to what I wanted to do in OF, was casting around for good starting points.

[QUOTE=Jim Correia;114363]
There is an array of tab buttons that we lay out vertically. They overlap either other slightly, and the selected on has the highest z-order.

There's also a container view. When a tab button is pressed, we swap the content of the container view with a cross fade animation.
—Jim[/QUOTE]

That already helps quite a bit, as it hadn't occurred to me to visually coalesce buttons with the container view. Had been picturing doing custom drawing, which would have been needlessly complex.

I do at least have the advantage of being able to target iOS 5+, so I can assume the UIViewController containment API.

Many thanks for your help!


All times are GMT -8. The time now is 11:51 AM.

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