AppleScript-ObjC Bridge Question

2015-10-29 Thread Dave
Hi All, Using the AppleScript-ObjC bridge is it possible to define an init method in the .applescript file and have it called like a normal Cocoa init? If so, how to I define it? If not, is there a method that gets call at Startup? This is from http://appscript.sourceforge.net/asoc.html

NSWindow Question

2015-10-29 Thread Dave
Hi, Is there a method something like didBecomeFrontWindow that get called when a Window becomes the front window because the User Clicked in it and it wasn’t before? I have a NSWindowController/NSWindow Pair, I’ve looked through the Class references, but can’t see anything? Thanks a lot Dave

Re: NSWindow Question

2015-10-29 Thread Lee Ann Rucker
windowDidBecomeKey or BecomeMain? Probably Key, if you want the one that got clicked on. Front isn’t all that useful; a window could be key but not front if it has something like a floating tools palette. Window notifications/delegate methods always start with windowVerb, so searching that

Presenting NSWindowController/NSWindow Pair as a Sheet?

2015-10-29 Thread Dave
Hi, I have an NSWindowController/NSWindow Pair and I was wondering if I can easily present this as a Sheet? At the moment it works Ok as a regular window but have need of it as a sheet too in some cases and wondered about the best way of doing it? Thanks a lot All the Best Dave

Re: Presenting NSWindowController/NSWindow Pair as a Sheet?

2015-10-29 Thread Seth Willits
> I have an NSWindowController/NSWindow Pair and I was wondering if I can > easily present this as a Sheet? > > At the moment it works Ok as a regular window but have need of it as a sheet > too in some cases and wondered about the best way of doing it? NSWindow has

Re: AppleScript-ObjC Bridge Question

2015-10-29 Thread Shane Stanley
On 30 Oct 2015, at 1:14 AM, Dave wrote: > > Using the AppleScript-ObjC bridge is it possible to define an init method in > the .applescript file and have it called like a normal Cocoa init? Sure. If you create a document-based ASObjC project, you'll see an example:

-replaceSubview transition animation that is applied to both old and new subviews

2015-10-29 Thread Nick
Hi I am trying to do a nice sliding effect (that looks to the user as Calendar scrolling), but for pages. So basically I have several pages that I want to present to the user one by one, that he can flip with a trackpad gesture. I am using a kCATransitionFromLeft animation, when the pages are

Re: Smooth adjustScroll of NSScrollView

2015-10-29 Thread Nick
Thanks Jens, Charles! 2015-10-28 6:59 GMT+02:00 Charles Constant : > I don't know if this information can solve your issue directly, but I used > it to fix my issue last week. I have a custom NSScroller that had jerky > scrolling. I didn't realize that views have an

Hiding tab bar causes web content in pushed view to slide down

2015-10-29 Thread Rick Mann
I have a tab bar application with a nav controller in each of the tabs. Clicking on an item in that pushes a new view controller with a WKWebView. Actually there's a UIView specified in IB, and in -loadView I create the WKWebView and add it to the UIView, and then add constraints to make it be