I'm working on the overhaul of the dialogs in robofab.interface. I have versions working in RoboFont and Glyphs (via TypeSupply's vanilla). I have a version working in FontLab 5.0.4 on 10.6. I have a version working in FontLab 5.1 on 10.7. I have a couple of points for those of you who use the RoboFab dialogs.
I have trouble with FontLab 5.1 on 10.6. Below is a simple test script that calls up a very simple alert in FontLab 5.1. When I try it, sometimes it works, sometimes it doesn't. I'm running out of ideas and I'm calling out to the community. It would be helpful to see if it is just my machine causing grief, or if it is a wider spread issue. If you happen to have a 5.1 version installed, on 10.6.8, see if you can run this successfully in the Macro panel.
from AppKit import NSAlert, NSCriticalAlertStyle
alertStyle = NSCriticalAlertStyle
alert = NSAlert.alloc().init()
print alert.runModal()
It could look something like this:
>
> from AppKit import NSAlert, NSCriticalAlertStyle
> alertStyle = NSCriticalAlertStyle
> alert = NSAlert.alloc().init()
> print alert.runModal()
Output is »0« and other than that nothing happens.
5.1 on 10.6.8 as you said.
Build 4283 (FL 5.1)
> Post result, FL build, OSX version, any tracebacks if you get any. Negative as well as positive results are useful.
>
> I'm also considering dropping the support for these dialogs. They would still be available for legacy installations - < 5.1, < 10.7 in FL. But since building interfaces with vanilla or cocoa is now a lot easier (especially in RoboFont and Glyphs) they seem redundant. Any objections?
> SearchList
> TwoChecks
> TwoFields
>
>
> Thanks!
> Erik<PastedGraphic-1.png>--
> You received this message because you are subscribed to the Google Groups "RoboFab" group.
> To post to this group, send email to rob...@googlegroups.com
> To unsubscribe from this group, send email to robofab-u...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/robofab?hl=en
>
> Messages from newly joined members are subject to moderation.
> Download RoboFab and documentation at http://robofab.com
FL 5.1 build 4269
OSX 10.6.8
Dialog appears as in your screenshot, after OK '0' is printed.
I've tried it several times, seems to work always.
Cheers,
G.
Output is »0« and other than that nothing happens.
5.1 on 10.6.8 as you said.
>>
>> Output is »0« and other than that nothing happens.
>> 5.1 on 10.6.8 as you said.
>
> which 5.1 build do you have?
Oh, sorry.
It's 4283.
Best,
Ben
OSX 10.6.8, FL 5.1 version 4283.
Joancarles
••••••••••••••••••••••
casasin.com
••••••••••••••••••••••
cosesmeves.posterous.com
Post result, FL build, OSX version, any tracebacks if you get any. Negative as well as positive results are useful.
I'm also considering dropping the support for these dialogs. They would still be available for legacy installations - < 5.1, < 10.7 in FL. But since building interfaces with vanilla or cocoa is now a lot easier (especially in RoboFont and Glyphs) they seem redundant. Any objections?
SearchList
TwoChecks
TwoFields
Thanks!
Erik<PastedGraphic-1.png>--
FL 5.1 build 428310.6.8I get 0 with no dialog from your original code, but adding NSApplication.sharedApplication() gets the dialog working every time for me.from AppKit import NSAlert, NSCriticalAlertStyle, NSApplicationNSApplication.sharedApplication()
alertStyle = NSCriticalAlertStyle
alert = NSAlert.alloc().init()
print alert.runModal()Console output led me to this which says it's not being initialized:
> Using that code, it works for me everytime, 10.6.8, FL 4269.
Same over here.
Post result, FL build, OSX version, any tracebacks if you get any. Negative as well as positive results are useful.
I'm also considering dropping the support for these dialogs. They would still be available for legacy installations - < 5.1, < 10.7 in FL. But since building interfaces with vanilla or cocoa is now a lot easier (especially in RoboFont and Glyphs) they seem redundant. Any objections?
SearchList
TwoChecks
TwoFields
Thanks!
Erik
Post result, FL build, OSX version, any tracebacks if you get any. Negative as well as positive results are useful.