Re: Accessing a property of a view via its controller doesn't work

2021-09-04 Thread Greg Weston via Cocoa-dev
> I access the window of a view by two different ways, in the controller and in > the view, resp., and in the controller, I always get a nil pointer. Have you verified that the view you’re accessing in the controller is the same instance as the one that works? ___

Re: What is the preferred way to set NSTextView content from NSAttributedString?

2020-02-02 Thread Greg Weston via Cocoa-dev
> - I want to set the displayed contents of V to T2. > > What is/are the recommended way/s to do this? > > *I would hope that I could assign V.attributedString = T2, but alas the > world does not seem to be this simple.* The documentation suggests you should be working with the view’s textStorag

Re: Need for Swift

2019-10-15 Thread Greg Weston via Cocoa-dev
> This discussion about Swift vs Objective-C is interesting, but I think it > omits something important. Both those languages only build apps for Apple > products. This was probably “omitted” because it’s not actually true. ___ Cocoa-dev mailing list (