Saturday, February 23, 2019

#1 2018-12-19 01:51:40 pm

jcwelch
Member
Registered: 2009-09-11
Posts: 55

animating field appearances in windows

So as I'm adding fields that are conditionally enabled, it occurs to me that what would be kind of nice is if the conditional fields didn't "exist" at all until enabled, then the fields below them would slide down to reveal them as needed.

a) is this something the standard cocoa frameworks support?
b) if so, what's involved in implementing it?

(this isn't a hard requirement for the app, I just like the idea of not having to see fields one can't actually use.)

Offline

 

#2 2018-12-19 02:09:05 pm

StefanK
Member
From:: St. Gallen, Switzerland
Registered: 2006-10-21
Posts: 11550
Website

Re: animating field appearances in windows

Use a table view (NSTableView).

It can be drawn borderless and insertion and deletion of cells can be animated


regards

Stefan

Offline

 

#3 2018-12-20 01:09:23 pm

jcwelch
Member
Registered: 2009-09-11
Posts: 55

Re: animating field appearances in windows

oh neat. Can you do the same with hiding/revealing buttons and text fields?

Offline

 

#4 2018-12-20 08:16:44 pm

technomorph
Member
Registered: 2017-12-14
Posts: 96

Re: animating field appearances in windows

jcwelch wrote:

oh neat. Can you do the same with hiding/revealing buttons and text fields?



i'm not sure if this is correct but try playing around with the CoreAnimations section.
I notice a section for transitions for subviews.
and some transitions like: move in, reveal, push

Offline

 

#5 2018-12-21 06:31:03 am

StefanK
Member
From:: St. Gallen, Switzerland
Registered: 2006-10-21
Posts: 11550
Website

Re: animating field appearances in windows

A view based table view cell can contain anything.


regards

Stefan

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)