-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails in Extension to NSView #66
Comments
Looks like This should do the trick: func sizeToFillSuperview(view: NSView) {
Cartography.layout(view) { box in
box.size == box.superview!.size; return
}
} |
Ok, got it, thank you! |
Hmmm... on the one hand, this is very simple. I must use Cartography as a separate .framework instead of including the sources directly in the Xcode project... On the other hand, I'll have to open up another ticket about all my issues getting Cartography to work as a framework, whether via CocoaPods or just grabbing the .framework directory and pulling it in (runtime errors). Thanks for your time and this framework! |
Example of an NSView Category:
Swift Compiler Error is "extra argument in call"
Early substitution for self doesn't help, nor does anything else I've thought of.
Obviously a global function like this is okay, but not ideal:
THANKS!
The text was updated successfully, but these errors were encountered: