cocoabits / MASShortcut

Modern framework for managing global keyboard shortcuts compatible with Mac App Store. More details:
http://blog.shpakovski.com/2012/07/global-keyboard-shortcuts-in-cocoa.html
BSD 2-Clause "Simplified" License
1.52k stars 220 forks source link

Doesn't work with Xcode 6.1 Beta 2 #44

Closed radex closed 10 years ago

radex commented 10 years ago

It looks like MASShortcutView doesn't work when compiled on Xcode 6.1 Beta 2. It works perfectly fine on 6.0 Beta 7, but after opening the project in new Xcode — the view doesn't render on screen.

I did some digging and it looks like the rendering method is reached, but [NSCell drawWithFrame:inView:] simply doesn't do the right thing.

Unfortunately I don't have enough knowledge about cells or MASShortcut to figure out if it's Xcode at fault or MASShortcut does something wrong.

Does anyone have any clue? Maybe a workaround?

pfandrade commented 10 years ago

I believe it's because -[MASShortcutView initWithFrame:] is not being called when loaded from a nib/storyboard.

shpakovski commented 10 years ago

@pfandrade Thanks a lot for the pull request!

@radex Could you please verify the changes?

P. S. Sorry for the late reply.

radex commented 10 years ago

@shpakovski works beautifully! :) Would be nice to get a new tag so that Cocoapods podspec can be updated.

@pfandrade thanks a lot for the fix :heart: