Re: using constants from Obj-c in swift

2015-09-25 Thread Boyd Collier
Charles & Marco, Thanks very much for the prompt replies. I think I’d tried scrollView.borderType = .NSNoBorder (and lots of other things), but didn’t think of leaving off the “NS”. Boyd > On Sep 25, 2015, at 12:12 PM, Marco S Hyman wrote: > > On Sep 25, 2015, at 11:43 AM, Boyd Collier wr

Re: swift: windowControllerDidLoadNib called twice

2015-09-25 Thread Lee Ann Rucker
I had one of those. Apple would send out updates - “please replace page X with pages X1-X20" On Sep 25, 2015, at 10:56 AM, Peter Teeson wrote: > FWIW before the nice hardcover books there was a single (as I recall) loose > leaf binder with documentation for the 128K. > >> On Sep 25, 2015, at

Re: using constants from Obj-c in swift

2015-09-25 Thread Marco S Hyman
Arrgh... typo > scrollview.borderType = NoBorder That should be scrollview.borderType = .NoBorder of course. How come I never see that kind of thing until AFTER I hit send. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: using constants from Obj-c in swift

2015-09-25 Thread Marco S Hyman
On Sep 25, 2015, at 11:43 AM, Boyd Collier wrote: > > In objective-c programs, there are places where one can write lines like the > following: > > [scrollview setBorderType:NSNoBorder]; > > with NSNoBoarder being specified in an enum in NSView. But enums in swift > are a different sort of b

Re: using constants from Obj-c in swift

2015-09-25 Thread Charles Srstka
> On Sep 25, 2015, at 1:43 PM, Boyd Collier wrote: > > In objective-c programs, there are places where one can write lines like the > following: > > [scrollview setBorderType:NSNoBorder]; > > with NSNoBoarder being specified in an enum in NSView. But enums in swift > are a different sort of

using constants from Obj-c in swift

2015-09-25 Thread Boyd Collier
In objective-c programs, there are places where one can write lines like the following: [scrollview setBorderType:NSNoBorder]; with NSNoBoarder being specified in an enum in NSView. But enums in swift are a different sort of beast, and I’ve not yet figured out what get the same job done. Is t

Re: swift: windowControllerDidLoadNib called twice

2015-09-25 Thread Peter Teeson
FWIW before the nice hardcover books there was a single (as I recall) loose leaf binder with documentation for the 128K. > On Sep 25, 2015, at 1:06 PM, Raglan T. Tiger wrote: > > >> On Sep 23, 2015, at 1:08 PM, Boyd Collier wrote: >> >> I’ve been writing code for Macs off-and-on for 30 years

Re: swift: windowControllerDidLoadNib called twice

2015-09-25 Thread Raglan T. Tiger
> On Sep 23, 2015, at 1:08 PM, Boyd Collier wrote: > > I’ve been writing code for Macs off-and-on for 30 years, I still have my original copy of Inside Macintosh ! IM Fun 1 IM Fun 2 -rags __