Closed holgersindbaek closed 9 years ago
Edited code blocks for formatting.
@jamonholmgren Any suggestions to what this might be about? Is there anything I'm doing wrong?
@jamonholmgren No suggestions whatsoever?
Ah, I think I see. layer
returns nil
. So nil
is the context in the block your trace mentions.
@colinta Ok. I still don't understand what I'm doing wrong here?
def wrapper_style
top 10
left 10
width 1130
height 760
layer do # <= layer is nil
corner_radius 7.0
end
end
wants_layer true # add this and...
layer do # ...layer is no longer nil!
@colinta @jamonholmgren That worked. Silly me. Thanks a lot.
I'm creating an OS X application using the latest motion kit and promotion and I'm getting this error whenever I try to apply some layer styles to one of my views:
This is my main_window_controller.rb:
And my main_window_layout.rb:
I'm using a custom NSWindow class and I think that might have something to do with it. Any guesses on what this might be about?