Re: Can an use introspection to determine if its a production app from the App Store?

2014-10-30 Thread Graham Cox
On 31 Oct 2014, at 5:38 am, David Hoerl wrote: > Looks great, but I cannot read Objective C anymore - where is the Swift > version??? Obj-C isn't going anywhere soon, and Swift isn't yet ready for hardcore commercial use. I can't see the transition taking any less than five years, so what a

Re: How make image nonvibrant in Yosemite NSVisualEffectView

2014-10-30 Thread David Duncan
> On Oct 30, 2014, at 2:09 PM, Bill Cheeseman wrote: > > >> On Oct 30, 2014, at 4:04 PM, David Duncan wrote: >> >> Then you just move your single vibrant background as necessary to be behind >> the right icon view. It sounds like you are putting the icon view inside the >> vibrant backgroun

Re: How make image nonvibrant in Yosemite NSVisualEffectView

2014-10-30 Thread Eric Schlegel
> On Oct 30, 2014, at 12:56 PM, Bill Cheeseman wrote: > > My images are application icons obtained using -[NSWorkspace iconForFile:]. > Like most application icons, they usually have irregularly shaped > nontransparent areas. I want to create a rectangular mask with a hole in it, > where the

Re: How make image nonvibrant in Yosemite NSVisualEffectView

2014-10-30 Thread Bill Cheeseman
> On Oct 30, 2014, at 4:04 PM, David Duncan wrote: > > Then you just move your single vibrant background as necessary to be behind > the right icon view. It sounds like you are putting the icon view inside the > vibrant background. According to the AppKit Release Note, at least as I understa

Re: How make image nonvibrant in Yosemite NSVisualEffectView

2014-10-30 Thread David Duncan
> On Oct 30, 2014, at 12:00 PM, Bill Cheeseman wrote: > > I am trying to make my application's window behave like the Application > Switcher behaves in Yosemite (open Application Switcher by pressing > Command-Tab). > > There is one behavior I can't figure out. The Application Switcher's wind

Re: How make image nonvibrant in Yosemite NSVisualEffectView

2014-10-30 Thread Bill Cheeseman
> On Oct 30, 2014, at 3:28 PM, Quincey Morris > wrote: > > Maybe this is too simplistic, but isn’t there a solution where the icons are > subviews of another view that has vibrancy turned off, not directly of the > window content view? > > Or, in the worst case, a two-window solution where t

Re: NSSplitView divider tracking-area

2014-10-30 Thread edward taffel
> On Oct 30, 2014, at 3:19 PM, Quincey Morris > wrote: > > On Oct 30, 2014, at 11:19 , edward taffel > wrote: >> >> i agree! do you feel it should always track? [anyone else?] > > There’s an argument that says it should change the cursor if and only if > mouse down w

Re: How make image nonvibrant in Yosemite NSVisualEffectView

2014-10-30 Thread Quincey Morris
On Oct 30, 2014, at 12:00 , Bill Cheeseman wrote: > > There is one behavior I can't figure out. The Application Switcher's window > background is vibrant, and so is the darker rectangle that marks the > application to be made active, but the icon images are not vibrant. > > In my application,

Re: NSSplitView divider tracking-area

2014-10-30 Thread Quincey Morris
On Oct 30, 2014, at 11:19 , edward taffel wrote: > > i agree! do you feel it should always track? [anyone else?] There’s an argument that says it should change the cursor if and only if mouse down while the cursor is changed would “grab” the splitter. (So that would be a “yes” in your scenari

How make image nonvibrant in Yosemite NSVisualEffectView

2014-10-30 Thread Bill Cheeseman
I am trying to make my application's window behave like the Application Switcher behaves in Yosemite (open Application Switcher by pressing Command-Tab). There is one behavior I can't figure out. The Application Switcher's window background is vibrant, and so is the darker rectangle that marks

Re: Can an use introspection to determine if its a production app from the App Store?

2014-10-30 Thread David Hoerl
Looks great, but I cannot read Objective C anymore - where is the Swift version??? On 10/30/14, 2:28 PM, Torsten Curdt wrote: You could also inspect the provisioning profile: https://github.com/tcurdt/TCMobileProvision cheers, Torsten On Thu, Oct 30, 2014 at 6:44 PM, David Brittain mailto:we

Re: Can an use introspection to determine if its a production app from the App Store?

2014-10-30 Thread Torsten Curdt
You could also inspect the provisioning profile: https://github.com/tcurdt/TCMobileProvision cheers, Torsten On Thu, Oct 30, 2014 at 6:44 PM, David Brittain wrote: > The following seems to work from experimentation... > > For an application installed through TestFlight Beta the receipt file >

Re: NSSplitView divider tracking-area

2014-10-30 Thread edward taffel
> On Oct 30, 2014, at 1:42 PM, Keary Suska wrote: > > A tracking area can choose when to track, and it appears that NSSplitView has > chosen to track only when the window is key. You may be able to access the > tracking area via the -trackingAreas method and swap it out with one of your > own

AppDefined events getting lost; 10.10 only

2014-10-30 Thread David Reitter
Dear experts, I’m encountering a serious (to me) problem in Yosemite where events are sent to the event queue of my application, but never received. I’m posting events of type NSApplicationDefined using [NSApp postEvent:atStart:]. Normally, these are received in a run loop, which uses the eve

Re: Can an use introspection to determine if its a production app from the App Store?

2014-10-30 Thread David Brittain
The following seems to work from experimentation... For an application installed through TestFlight Beta the receipt file is named StoreKit\sandboxReceipt vs the usual StoreKit\receipt. Using [NSBundle appStoreReceiptURL] you can look for sandboxReceipt at the end of the URL. NSURL *receiptURL =

Re: NSSplitView divider tracking-area

2014-10-30 Thread Keary Suska
On Oct 30, 2014, at 10:45 AM, edward taffel wrote: >> AFAIK the tracking area of the split view is not affected by anything in the >> way you describe, and looking at the disassembly shows nothing out of the >> ordinary. The delegate has the ability to add to the area, but that's it. > > i’m

Can an use introspection to determine if its a production app from the App Store?

2014-10-30 Thread David Hoerl
Can an iOS app examine some property to determine if its been installed as a development style app (ie Test Flight, or Xcode, etc), or was installed via the App Store. [I support a library where the app is suppose to pass a flag, but clients are making errors...] David __

When I rotate the MKMapView with transform, setCenter not working.

2014-10-30 Thread sonofsky2...@gmail.com
Hi all, I rotate the MKMapView with setting the rotation transform. When I use setCenter method to change the center coordinate of the map, the location of this coordinate not in the center. Does anyone know what happened, and how to solve this problem? Below is the code snipt. - (void)viewDi

Re: NSSplitView divider tracking-area

2014-10-30 Thread edward taffel
> On Oct 30, 2014, at 12:34 PM, Seth Willits wrote: > >> in a panel, the tracking area for NSSplitView’s divider is only active if >> the panel is key, i.e. the cursor is not affected otherwise. as a panel is >> not generally key unless needed, ought not this area be always active? >> anyone

Re: NSSplitView divider tracking-area

2014-10-30 Thread Seth Willits
> in a panel, the tracking area for NSSplitView’s divider is only active if the > panel is key, i.e. the cursor is not affected otherwise. as a panel is not > generally key unless needed, ought not this area be always active? anyone > agree? anyone have a workaround? What does "a panel" mean to

Re: Closing window on Yosemite crashes (isFlipped)

2014-10-30 Thread Fritz Anderson
I haven’t encountered this myself. This is stream-of-consciousness, adding the presence of convertRect:toView: in the trace as the immediate caller… … The classic cause of a message arriving at the wrong object is that the expected object had been deallocated and its address recycled for the ob

[MEET] Toronto CocoaHeads / tacow - November 12

2014-10-30 Thread Karl Moskowski
tacow's next meeting is scheduled for 6:30 PM on Wednesday, November 12, 2014 in meeting room 310 of Metro Hall. Note that, because of Remembrance Day, this is a day later than our usual second-Tuesday schedule Marc Prud'hommeaux will be presenting "Thinking in Swift: new paradigms for the Obje

NSSplitView divider tracking-area

2014-10-30 Thread edward taffel
in a panel, the tracking area for NSSplitView’s divider is only active if the panel is key, i.e. the cursor is not affected otherwise. as a panel is not generally key unless needed, ought not this area be always active? anyone agree? anyone have a workaround? thanks, edward

Closing window on Yosemite crashes (isFlipped)

2014-10-30 Thread Allan Odgaard
Since Yosemite I have seen a lot of crash reports submitted where the crash is triggered by closing a window and it mostly ends with sending `isFlipped`, `_isLayerBacked`, or `transformRect:` to a wrong object. I have attached a sample crash report below. Does anyone else see this? Anyone know