|
Tootips in NSTextView/NSTextfields
I want to display tooltips over parts of an attributed string, and thought that using an
NSToolTipAttributeName attribute on the required ranges would do the trick but I can't get it to
work. In my
I want to display tooltips over parts of an attributed string, and thought that using an
NSToolTipAttributeName attribute on the required ranges would do the trick but I can't get it to
work. In my
|
By
Sak Wathanasin
·
#484
·
|
|
Re: Replace object at key path in NS[Mutable]Dictionary
I've always just converted the entire dictionary and its contents to mutable objects. I've included some code below for the necessary categories to implement "mutableCopyDeep" methods. It does a deep
I've always just converted the entire dictionary and its contents to mutable objects. I've included some code below for the necessary categories to implement "mutableCopyDeep" methods. It does a deep
|
By
Jon Gotow
·
#483
·
|
|
Re: Replace object at key path in NS[Mutable]Dictionary
Have you tried using NSPropertyListSerialization with the NSPropertyListMutableContainers option? That should make all the nested dictionaries/arrays mutable.
—Jens
Have you tried using NSPropertyListSerialization with the NSPropertyListMutableContainers option? That should make all the nested dictionaries/arrays mutable.
—Jens
|
By
Jens Alfke
·
#482
·
|
|
Replace object at key path in NS[Mutable]Dictionary
HiI all,
I have a dictionary that has been loaded from a plist file, which has a deep structure of dictionaries within dictionaries. I would like to modify just one key-value pair deep in that
HiI all,
I have a dictionary that has been loaded from a plist file, which has a deep structure of dictionaries within dictionaries. I would like to modify just one key-value pair deep in that
|
By
Jonathan Taylor
·
#481
·
|
|
Re: Is it possible to connect different hosts on LAN with NSXPCConnection?
Dear all,
I gave up the use of NSXPCConnection.
Instead, I decided to use NSNetService and NSStream.
Regards,
Akifumi Takata
Dear all,
I gave up the use of NSXPCConnection.
Instead, I decided to use NSNetService and NSStream.
Regards,
Akifumi Takata
|
By
Akifumi Takata
·
#480
·
|
|
Showing tooltips myself
HI,
Is there a way to force a tooltip to display when I want it to?
I have a UI with a spring-loaded popover - it is only shown during mousedown on its host view. Tooltips on the items in the
HI,
Is there a way to force a tooltip to display when I want it to?
I have a UI with a spring-loaded popover - it is only shown during mousedown on its host view. Tooltips on the items in the
|
By
Graham Cox
·
#479
·
|
|
Is it possible to connect different hosts on LAN with NSXPCConnection?
Dear all,
I am developing a persistent object framework (object oriented database) called the Nursery framework. https://github.com/Nursery-Framework/Nursery
In that framework I am using a deprecated
Dear all,
I am developing a persistent object framework (object oriented database) called the Nursery framework. https://github.com/Nursery-Framework/Nursery
In that framework I am using a deprecated
|
By
Akifumi Takata
·
#478
·
|
|
Re: Auto-Layout Question
Bump up the label's content hugging and compression resistance values above the normal/standard values, at least above the values used for "don't particularly care how big they are" views. The default
Bump up the label's content hugging and compression resistance values above the normal/standard values, at least above the values used for "don't particularly care how big they are" views. The default
|
By
Steve Christensen <punster@...>
·
#477
·
|
|
Auto-Layout Question
I would like some help building constraints that adjust a superView to the size of it's subView.
Specifically, I have a UILabel embedded in a UIView. The label has fixed width and (since numberOfLines
I would like some help building constraints that adjust a superView to the size of it's subView.
Specifically, I have a UILabel embedded in a UIView. The label has fixed width and (since numberOfLines
|
By
Rick Aurbach
·
#476
·
|
|
Re: problems with tab key and custom views
On 12/12/2017 1:59 PM, Quincey Morris wrote:
Hmm, you're right, it worked in a toy project for me.
Not counting the window's content view, there is only one level in
On 12/12/2017 1:59 PM, Quincey Morris wrote:
Hmm, you're right, it worked in a toy project for me.
Not counting the window's content view, there is only one level in
|
By
James Walker
·
#475
·
|
|
Re: problems with tab key and custom views
You shouldn’t have to do anything else. I just tried it in a standard single-window document template with 3 text fields in the window, and it worked fine without any code.
I’ve never tried to use
You shouldn’t have to do anything else. I just tried it in a standard single-window document template with 3 text fields in the window, and it worked fine without any code.
I’ve never tried to use
|
By
Quincey Morris
·
#474
·
|
|
problems with tab key and custom views
I have a window with 3 views that I want to be able to switch focus between using the tab or shift-tab keys. Going by the view programming guide, it seems like I shouldn't have to do
I have a window with 3 views that I want to be able to switch focus between using the tab or shift-tab keys. Going by the view programming guide, it seems like I shouldn't have to do
|
By
James Walker
·
#473
·
|
|
Re: warning about %s in format string
On 12/8/2017 3:39 PM, Jens Alfke wrote:
I'll be darned, I just assumed it would use UTF-8. Thanks.
On 12/8/2017 3:39 PM, Jens Alfke wrote:
I'll be darned, I just assumed it would use UTF-8. Thanks.
|
By
James Walker
·
#472
·
|
|
Re: warning about %s in format string
Because NSString doesn’t know what text encoding the C string uses, so it just uses the process’s default encoding. This default encoding varies according to the user's locale, and also (last I
Because NSString doesn’t know what text encoding the C string uses, so it just uses the process’s default encoding. This default encoding varies according to the user's locale, and also (last I
|
By
Jens Alfke
·
#471
·
|
|
warning about %s in format string
Clang has a warning option, -Wcstring-format-directive, that produces a warning "Using %s directive in NSString which is being passed as a formatting argument to the formatting method" on a
Clang has a warning option, -Wcstring-format-directive, that produces a warning "Using %s directive in NSString which is being passed as a formatting argument to the formatting method" on a
|
By
James Walker
·
#470
·
|
|
Re: potential leak warnings from static analyzer on window controllers
On 12/7/2017 11:29 AM, Quincey Morris wrote:
Thanks for the ideas! I ended up using a global NSMutableSet.
On 12/7/2017 11:29 AM, Quincey Morris wrote:
Thanks for the ideas! I ended up using a global NSMutableSet.
|
By
James Walker
·
#469
·
|
|
Re: Launching apps on 10.13.2
Very true - as I mentioned it's very old code that hasn’t been revisited in along time. Nevertheless, it’s not deprecated, and has always worked previously. I’ve never found anything in
Very true - as I mentioned it's very old code that hasn’t been revisited in along time. Nevertheless, it’s not deprecated, and has always worked previously. I’ve never found anything in
|
By
Graham Cox
·
#468
·
|
|
Re: Launching apps on 10.13.2
It’s actually quite an unusual scenario, I finally realized:
a. You’re archiving something in a keyed archive without a key.
b. You’re archiving using an API that I doubt is used at all very
It’s actually quite an unusual scenario, I finally realized:
a. You’re archiving something in a keyed archive without a key.
b. You’re archiving using an API that I doubt is used at all very
|
By
Quincey Morris
·
#467
·
|
|
Re: Launching apps on 10.13.2
Ah, makes sense.
I wondered about that myself. I tried just leaving it off, but that didn’t work either. Without the source code for the private ‘old array’ class, it’s hard to guess what to
Ah, makes sense.
I wondered about that myself. I tried just leaving it off, but that didn’t work either. Without the source code for the private ‘old array’ class, it’s hard to guess what to
|
By
Graham Cox
·
#466
·
|
|
Re: Launching apps on 10.13.2
FWIW, 102 is 0x66, or a lower case “f”. Also, I think a “$” at the start of an archive key is an escape character, and so probably shouldn’t be taken literally. However, I don’t know what
FWIW, 102 is 0x66, or a lower case “f”. Also, I think a “$” at the start of an archive key is an escape character, and so probably shouldn’t be taken literally. However, I don’t know what
|
By
Quincey Morris
·
#465
·
|