|
Re: Updating to Xcode 10
I bit the bullet and deleted Xcode 10 and reinstalled Xcode 9.4.1, and that solves the issue for now. I'd better get a move on with the Swift rewrite!
Thanks for all the help.
John
--
John
I bit the bullet and deleted Xcode 10 and reinstalled Xcode 9.4.1, and that solves the issue for now. I'd better get a move on with the Swift rewrite!
Thanks for all the help.
John
--
John
|
By
John Brownie
·
#745
·
|
|
Re: Adjusting Font Size to fit View Rectangle
This is a Mac project and those methods are not available…..
This is a Mac project and those methods are not available…..
|
By
Dave
·
#744
·
|
|
Re: Can NSView and NSImageView respond to Mouse Clicks?
Thanks a lot, I actually found this yesterday and now have it working using the mouseDown method to display a Popup - work a treat!
All the Best
Dave
Thanks a lot, I actually found this yesterday and now have it working using the mouseDown method to display a Popup - work a treat!
All the Best
Dave
|
By
Dave
·
#743
·
|
|
More Layout Questions
Hi,
I have a couple of questions related to manual layout on the Mac.
Using manual layout, does setting the “frame: of a view cause “layout” to be called or do I need to call
Hi,
I have a couple of questions related to manual layout on the Mac.
Using manual layout, does setting the “frame: of a view cause “layout” to be called or do I need to call
|
By
Dave
·
#742
·
|
|
Re: Updating to Xcode 10
Oh boy. I am only targeting macOS (10.9 for this release), so it should still be doable. This will be a stop-gap while I work on the migration of the whole code base to Swift. I'm relying on a
Oh boy. I am only targeting macOS (10.9 for this release), so it should still be doable. This will be a stop-gap while I work on the migration of the whole code base to Swift. I'm relying on a
|
By
John Brownie
·
#741
·
|
|
Re: Updating to Xcode 10
John;
It’s usually a good thing to read the release notes for each version of Xcode. The Xcode 10 release notes directly mention the issue you are facing:
Building with
John;
It’s usually a good thing to read the release notes for each version of Xcode. The Xcode 10 release notes directly mention the issue you are facing:
Building with
|
By
Jack Brindle
·
#740
·
|
|
How to end a UIKeyboardTypeDecimalPad
I got a UITextField which has a UIKeyboardTypeDecimalPad.
With a normal TextField (UIKeyboardTypeDefault) the user can enter Return, the UITextFieldDelegate gets textFieldShouldReturn and all is
I got a UITextField which has a UIKeyboardTypeDecimalPad.
With a normal TextField (UIKeyboardTypeDefault) the user can enter Return, the UITextFieldDelegate gets textFieldShouldReturn and all is
|
By
Gerriet M. Denkmann
·
#739
·
|
|
Re: Updating to Xcode 10
I discovered one thing that is a bug in Xcode. In the section Apple Clang - Language - C++, if you set the C++ Standard Library to the option libstdc++ (GNU C++ Standard Library), it generates the
I discovered one thing that is a bug in Xcode. In the section Apple Clang - Language - C++, if you set the C++ Standard Library to the option libstdc++ (GNU C++ Standard Library), it generates the
|
By
John Brownie
·
#738
·
|
|
Re: Segue
It is self-evident after you read the documentation, but it takes about a day to read the documentation …
… and if you’d spent the day reading the documentation, it wouldn’t have taken a day
It is self-evident after you read the documentation, but it takes about a day to read the documentation …
… and if you’d spent the day reading the documentation, it wouldn’t have taken a day
|
By
Quincey Morris
·
#737
·
|
|
Re: Segue
You are quite right. The Xcode template “Master-Detail App” uses a SplitViewController, and it works fine.
And it works for both iPad and iPhone.
But you can do (iPhone only ?) without a
You are quite right. The Xcode template “Master-Detail App” uses a SplitViewController, and it works fine.
And it works for both iPad and iPhone.
But you can do (iPhone only ?) without a
|
By
Gerriet M. Denkmann
·
#736
·
|
|
Re: Can NSView and NSImageView respond to Mouse Clicks?
NSView inherits from NSResponder. That gives NSView access to mouseDown, mouseUp and a whole host of other important calls.
What this really means is that you can implement
-
NSView inherits from NSResponder. That gives NSView access to mouseDown, mouseUp and a whole host of other important calls.
What this really means is that you can implement
-
|
By
Jack Brindle
·
#735
·
|
|
Re: Can NSView and NSImageView respond to Mouse Clicks?
On Thu, 20 Sep 2018 11:36:10 +0200, Dave said:
Suggestion: open NSView.h and search for "menu", there are API like menuForEvent: and willOpenMenu: that look useful for your case.
Cheers,
Sean
On Thu, 20 Sep 2018 11:36:10 +0200, Dave said:
Suggestion: open NSView.h and search for "menu", there are API like menuForEvent: and willOpenMenu: that look useful for your case.
Cheers,
Sean
|
By
Sean McBride
·
#734
·
|
|
Re: Updating to Xcode 10
Did you change your linked library to the new C++ one?
Did you change your linked library to the new C++ one?
|
By
Alex Zavatone
·
#733
·
|
|
Re: Adjusting Font Size to fit View Rectangle
UILabel has `adjustsFontSizeToFitWidth` and `minimumScaleFactor` properties that aim to support that type of thing automatically. Could you employ it?
b
UILabel has `adjustsFontSizeToFitWidth` and `minimumScaleFactor` properties that aim to support that type of thing automatically. Could you employ it?
b
|
By
Ben Kennedy
·
#732
·
|
|
Re: Updating to Xcode 10
I build a lot of C++ and I don’t think I’ve ever seen that. Are you overriding the header search path or specifying any exotic compiler flags already? And double-check that you’ve got a valid
I build a lot of C++ and I don’t think I’ve ever seen that. Are you overriding the header search path or specifying any exotic compiler flags already? And double-check that you’ve got a valid
|
By
Jens Alfke
·
#731
·
|
|
Re: Adjusting Font Size to fit View Rectangle
You also might want to check the height of a descender appears below the bounding NSTextField.
You also might want to check the height of a descender appears below the bounding NSTextField.
|
By
Alex Zavatone
·
#730
·
|
|
Re: Segue
I'm not sure I am understanding your problem correctly, but I am wondering about the exact layout of your storyboard. Specifically, are you using a UISplitViewController? The Push (Detail) segue is
I'm not sure I am understanding your problem correctly, but I am wondering about the exact layout of your storyboard. Specifically, are you using a UISplitViewController? The Push (Detail) segue is
|
By
Rick Aurbach
·
#729
·
|
|
Re: Adjusting Font Size to fit View Rectangle
Yes, I’m sure single line (text field) instead of multiline (text view) can be accomplished with less rigor. Let me know if you find anything interesting.
Sandor
Yes, I’m sure single line (text field) instead of multiline (text view) can be accomplished with less rigor. Let me know if you find anything interesting.
Sandor
|
By
Sandor Szatmari
·
#728
·
|
|
Re: Adjusting Font Size to fit View Rectangle
I do think that based on your requirements, there will have been others who have solved this. I just found a few solutions on Stack Overflow that could be adopted to MacOS.
Will send off list.
I do think that based on your requirements, there will have been others who have solved this. I just found a few solutions on Stack Overflow that could be adopted to MacOS.
Will send off list.
|
By
Alex Zavatone
·
#727
·
|
|
Re: Adjusting Font Size to fit View Rectangle
Hi,
I think it should work ok on iOS, will find out soon, there maybe some differences in method names etc.
I should have been more clear, this is for a single line, it should work for multiple lines
Hi,
I think it should work ok on iOS, will find out soon, there maybe some differences in method names etc.
I should have been more clear, this is for a single line, it should work for multiple lines
|
By
Dave
·
#726
·
|