Cannot use NSVariableStatusItemLength from Swift 1.2
| Originator: | christian.tietze | ||
| Number: | rdar://21745135 | Date Originated: | 2015-07-09 |
| Status: | Closed | Resolved: | |
| Product: | Product Version: | ||
| Classification: | Serious Bug | Reproducible: | Always |
Summary: Setting up a NSStatusBarItem with variable length doesn't work from Swift Steps to Reproduce: Using Xcode 6.3, run: ``` #!/usr/bin/xcrun swift import AppKit let i = NSVariableStatusItemLength println(i) ``` Expected Results: It prints “-1.0” on screen, the underlying value of NSVariableStatusItemLength Actual Results: Linker error: Undefined symbols for architecture x86_64: "_NSVariableStatusItemLength" Version: Xcode 6.3.2, Swift 1.2 Notes:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!