|
Re: Changing Colours in an NSImage
Check out the tint.
By
Alex Zavatone
·
#807
·
|
|
Changing Colours in an NSImage
Hi,
I have an Image that has a transparent background, the foreground image is made up totally of the (NSColor blackColor), is this an easy way to replace the “blackColor” with another Color? As
Hi,
I have an Image that has a transparent background, the foreground image is made up totally of the (NSColor blackColor), is this an easy way to replace the “blackColor” with another Color? As
|
By
Dave
·
#806
·
|
|
Re: resizeWithOldSuperviewSize not getting called on added Subview
There is a problem wit the way this is coded that means that the same image is being resized up and down which isn’t the best. I’ve changed it to load all the images ahead of time and always
There is a problem wit the way this is coded that means that the same image is being resized up and down which isn’t the best. I’ve changed it to load all the images ahead of time and always
|
By
Dave
·
#805
·
|
|
Re: resizeWithOldSuperviewSize not getting called on added Subview
Hi,
This makes it work:
-(NSImage*) resizeImage:(NSImage*) theImage withImageRect:(NSRect) theImageRect
{
CGImageRef myCGImageRef;
NSImage* myImage;
myCGImageRef = [theImage
Hi,
This makes it work:
-(NSImage*) resizeImage:(NSImage*) theImage withImageRect:(NSRect) theImageRect
{
CGImageRef myCGImageRef;
NSImage* myImage;
myCGImageRef = [theImage
|
By
Dave
·
#804
·
|
|
Re: resizeWithOldSuperviewSize not getting called on added Subview
Ahhhh, found something interesting:
self.translatesAutoresizingMaskIntoConstraints = NO;
Then resizeWithOldSuperviewSize gets called!!! BUT the image no longer resizes inside the Image View. Is
Ahhhh, found something interesting:
self.translatesAutoresizingMaskIntoConstraints = NO;
Then resizeWithOldSuperviewSize gets called!!! BUT the image no longer resizes inside the Image View. Is
|
By
Dave
·
#803
·
|
|
Re: resizeWithOldSuperviewSize not getting called on added Subview
I did the resizing in the viewDidEndLiveResize method and it does resize correctly, but the problem is that the image stays at the old size until the User stops re-sizing the window (e.g. mouseUp’s)
I did the resizing in the viewDidEndLiveResize method and it does resize correctly, but the problem is that the image stays at the old size until the User stops re-sizing the window (e.g. mouseUp’s)
|
By
Dave
·
#802
·
|
|
Re: resizeWithOldSuperviewSize not getting called on added Subview
Hi Again,
After digging around a little I find this:
https://lists.apple.com/archives/cocoa-dev///2005/Oct/msg00476.html
It seems that someone else has noticed this way back in 2005! From looking
Hi Again,
After digging around a little I find this:
https://lists.apple.com/archives/cocoa-dev///2005/Oct/msg00476.html
It seems that someone else has noticed this way back in 2005! From looking
|
By
Dave
·
#801
·
|
|
Re: Mail Icon for iOS
Not necessarily. I don’t have a documentation link, but I’m pretty sure that Apple won’t let you use one of their icons for a function (e.g. “Send Mail”) in your own app. If you’re using
Not necessarily. I don’t have a documentation link, but I’m pretty sure that Apple won’t let you use one of their icons for a function (e.g. “Send Mail”) in your own app. If you’re using
|
By
Quincey Morris
·
#800
·
|
|
Re: Mail Icon for iOS
I would think that would be a fair use - click this to send an email with Mail.app. No different than how tons of apps show icons of other apps for launching or doing actions with them. Is there no
I would think that would be a fair use - click this to send an email with Mail.app. No different than how tons of apps show icons of other apps for launching or doing actions with them. Is there no
|
By
Steve Mills
·
#799
·
|
|
Re: Word detection without separating spaces
You could try taking the first n characters of a word (where n is 1 to maximum word length) and spell checking that string. When you a string that spell-checks, continue for the next n characters, and
You could try taking the first n characters of a word (where n is 1 to maximum word length) and spell checking that string. When you a string that spell-checks, continue for the next n characters, and
|
By
Jeremy Hughes
·
#798
·
|
|
Re: resizeWithOldSuperviewSize not getting called on added Subview
This is a Mac Project.
I’ve not found anything obvious on this, so I’m trying to get to the bottom of why the auto-resizing mechanism is not working with Class that inherits from NSImageView
This is a Mac Project.
I’ve not found anything obvious on this, so I’m trying to get to the bottom of why the auto-resizing mechanism is not working with Class that inherits from NSImageView
|
By
Dave
·
#797
·
|
|
Re: Very short-lived Permissions in iOS
I have a strong suspicion that this is (again) a case of programmer (=me) error.
Probably the object asking for authorisation did not live long enough.
Sorry for the noise.
I have a strong suspicion that this is (again) a case of programmer (=me) error.
Probably the object asking for authorisation did not live long enough.
Sorry for the noise.
|
By
Gerriet M. Denkmann
·
#796
·
|
|
Re: Very short-lived Permissions in iOS
You can create another window and then display the auth request. When the auth is accepted or denied, dispose of the other window.
You can create another window and then display the auth request. When the auth is accepted or denied, dispose of the other window.
|
By
Alex Zavatone
·
#795
·
|
|
Very short-lived Permissions in iOS
iOS 12; Xcode 10.
User clicks on a button.
2018-09-28 12:14:59.376384+0700 CLAuthorizationStatus: Not Determined
2018-09-28 12:14:59.377407+0700 asking for permission...
2018-09-28
iOS 12; Xcode 10.
User clicks on a button.
2018-09-28 12:14:59.376384+0700 CLAuthorizationStatus: Not Determined
2018-09-28 12:14:59.377407+0700 asking for permission...
2018-09-28
|
By
Gerriet M. Denkmann
·
#794
·
|
|
Re: Mail Icon for iOS
This is a very helpful list indeed. Thanks a lot.
Well, I was thinking of the AppIcon of Mail.app. On macOS I could do:
[NSRunningApplication runningApplicationsWithBundleIdentifier:
This is a very helpful list indeed. Thanks a lot.
Well, I was thinking of the AppIcon of Mail.app. On macOS I could do:
[NSRunningApplication runningApplicationsWithBundleIdentifier:
|
By
Gerriet M. Denkmann
·
#793
·
|
|
Re: Mail Icon for iOS
This should help.
https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/system-icons/
See if your desired icon is there.
There also is a font that is all icons that is
This should help.
https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/system-icons/
See if your desired icon is there.
There also is a font that is all icons that is
|
By
Alex Zavatone
·
#792
·
|
|
resizeWithOldSuperviewSize not getting called on added Subview
Hi,
I’m using Manual Layout on a Mac project. The View Hierarchy is built in Interface Builder and during run time I add a subview to one of the views. However, resizeWithOldSuperviewSize is not
Hi,
I’m using Manual Layout on a Mac project. The View Hierarchy is built in Interface Builder and during run time I add a subview to one of the views. However, resizeWithOldSuperviewSize is not
|
By
Dave
·
#791
·
|
|
Re: Word detection without separating spaces
Yes, thanks! I have been playing with NSSpellChecker but haven’t been able to configure it with the magic sauce to get it to tokenize the way I am describing.
Sandor
Yes, thanks! I have been playing with NSSpellChecker but haven’t been able to configure it with the magic sauce to get it to tokenize the way I am describing.
Sandor
|
By
Sandor Szatmari
·
#790
·
|
|
Re: Word detection without separating spaces
Some quick googlage suggests that UITextChecker (iOS) and NSSpellChecker (Mac OS) might fit the bill...?
-ben
Some quick googlage suggests that UITextChecker (iOS) and NSSpellChecker (Mac OS) might fit the bill...?
-ben
|
By
Ben Kennedy
·
#789
·
|
|
Word detection without separating spaces
You know how apple apps can turn ‘itwas’ into ‘it was’ as your typing in a text field? Is there an API for this? I’d like to be able to take something like AREALLYLONGSTRING and turn it
You know how apple apps can turn ‘itwas’ into ‘it was’ as your typing in a text field? Is there an API for this? I’d like to be able to take something like AREALLYLONGSTRING and turn it
|
By
Sandor Szatmari
·
#788
·
|