|
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
·
|
|
Re: Adjusting Font Size to fit View Rectangle
This was for macOS… not sure how to go about it on iOS. I’d guess it would work, but there may be an easier method. I don’t know though.
I have used this method to dynamically size formatted
This was for macOS… not sure how to go about it on iOS. I’d guess it would work, but there may be an easier method. I don’t know though.
I have used this method to dynamically size formatted
|
By
Sandor Szatmari
·
#725
·
|
|
Adding Action Methods to Controls
Ignore this, was a silly bug in that the identifier wasn’t setup correctly!
Ignore this, was a silly bug in that the identifier wasn’t setup correctly!
|
By
Dave
·
#724
·
|
|
Adding Action Methods to Controls
Hi,
I’ve created an NSButton Class and added an Action to it as so:
myButton = [[NSButton alloc] initWithFrame:myButtonFrameRect];
myButton.image = myImage;
myButton.imageScaling =
Hi,
I’ve created an NSButton Class and added an Action to it as so:
myButton = [[NSButton alloc] initWithFrame:myButtonFrameRect];
myButton.image = myImage;
myButton.imageScaling =
|
By
Dave
·
#723
·
|
|
Re: Adjusting Font Size to fit View Rectangle
Hi,
Couldn’t find it so wrote my own:
(NSInteger) adjustFontSize:(NSInteger) theFontSize toFitWidth:(NSInteger)
Hi,
Couldn’t find it so wrote my own:
(NSInteger) adjustFontSize:(NSInteger) theFontSize toFitWidth:(NSInteger)
|
By
Dave
·
#722
·
|
|
Re: Adjusting Font Size to fit View Rectangle
Hi,
Those two methods alter the frame size, I want to keep the same Frame Size but reduce the Font Size of the Content until it fit into the Displayable Area. I’m 99% sure there is a method to do
Hi,
Those two methods alter the frame size, I want to keep the same Frame Size but reduce the Font Size of the Content until it fit into the Displayable Area. I’m 99% sure there is a method to do
|
By
Dave
·
#721
·
|