|
Re: "broken pipe", but not when debugging...
For some reason lost in ancient Unix history, if you write to a file-descriptor that’s been closed at the other end, a SIGPIPE signal is raised. This will by default kill your process. It’s
For some reason lost in ancient Unix history, if you write to a file-descriptor that’s been closed at the other end, a SIGPIPE signal is raised. This will by default kill your process. It’s
|
By
Jens Alfke
·
#164
·
|
|
"broken pipe", but not when debugging...
Hi,
I’m using NSTask to ‘talk to’ a command line executable that is embedded in my app. I use NSPipe as its stdIn and stdOut channels.
When I run the code under Xcode, it works fine. When I
Hi,
I’m using NSTask to ‘talk to’ a command line executable that is embedded in my app. I use NSPipe as its stdIn and stdOut channels.
When I run the code under Xcode, it works fine. When I
|
By
Graham Cox
·
#163
·
|
|
Re: How to get full user name prior to 10.12?
Ah, hidden in plain sight! Thanks
G.
Ah, hidden in plain sight! Thanks
G.
|
By
Graham Cox
·
#162
·
|
|
Re: How to get full user name prior to 10.12?
The Foundation function NSFullUserName().
--
Shane Stanley <sstanley@...>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
The Foundation function NSFullUserName().
--
Shane Stanley <sstanley@...>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
|
By
Shane Stanley
·
#161
·
|
|
How to get full user name prior to 10.12?
10.12 added a method to NSProcessInfo, -fullUserName.
How do I get the same info on earlier OS?
—Graham
10.12 added a method to NSProcessInfo, -fullUserName.
How do I get the same info on earlier OS?
—Graham
|
By
Graham Cox
·
#160
·
|
|
Re: Changing Folder Name in Xcode
Thanks to all who responded!
In my Xcode project, the yellow group “folder” icons in the navigator pane closely resemble the folder structure of my project. And I do not use git or
Thanks to all who responded!
In my Xcode project, the yellow group “folder” icons in the navigator pane closely resemble the folder structure of my project. And I do not use git or
|
By
Gerriet M. Denkmann
·
#159
·
|
|
Re: Changing Folder Name in Xcode
On Tue, 8 Aug 2017 17:50:13 +0700, Gerriet M. Denkmann said:
I've done that, and it's worked fine for me.
If the files are referenced relative it their parent, then I think it's just a matter of
On Tue, 8 Aug 2017 17:50:13 +0700, Gerriet M. Denkmann said:
I've done that, and it's worked fine for me.
If the files are referenced relative it their parent, then I think it's just a matter of
|
By
Sean McBride
·
#158
·
|
|
Re: Changing Folder Name in Xcode
On the right side of the project in one of the inspectors, there is a means of specifying the path to the item selected and how it is defined. Relative to Group, Relative to Project, Absolute Path,
On the right side of the project in one of the inspectors, there is a means of specifying the path to the item selected and how it is defined. Relative to Group, Relative to Project, Absolute Path,
|
By
Alex Zavatone
·
#157
·
|
|
Re: Changing Folder Name in Xcode
If you're using Git, this can be mitigated by simply using `git mv` to rename the directory (`git mv oldname newname`).
b
If you're using Git, this can be mitigated by simply using `git mv` to rename the directory (`git mv oldname newname`).
b
|
By
Ben Kennedy
·
#156
·
|
|
Re: Changing Folder Name in Xcode
I wouldn’t edit the .pbxproj file. Under the assumption that your project has the files organized under yellow group “folder” icons (in the navigator pane, as opposed to blue “folder
I wouldn’t edit the .pbxproj file. Under the assumption that your project has the files organized under yellow group “folder” icons (in the navigator pane, as opposed to blue “folder
|
By
Quincey Morris
·
#155
·
|
|
Changing Folder Name in Xcode
I have a project:
Some Folder
Some.xcodeproj
Old and Bad Name
lots of stuff
I would like to change the folder “Old and Bad Name” to “Nice new name”
I could rename this folder in Finder
I have a project:
Some Folder
Some.xcodeproj
Old and Bad Name
lots of stuff
I would like to change the folder “Old and Bad Name” to “Nice new name”
I could rename this folder in Finder
|
By
Gerriet M. Denkmann
·
#154
·
|
|
Re: respondsToSelector in Swift
Mostly the #selector.
And also, I did not know about AnyObject.
This now seems to work:
final class SpeedValueTransformer: ValueTransformer
{
override class func transformedValueClass() -> AnyClass
Mostly the #selector.
And also, I did not know about AnyObject.
This now seems to work:
final class SpeedValueTransformer: ValueTransformer
{
override class func transformedValueClass() -> AnyClass
|
By
Gerriet M. Denkmann
·
#153
·
|
|
Re: respondsToSelector in Swift
It’s not clear which part of that is giving you trouble, but I was able to do this in a playground (Swift 4, Xcode 9), and got the expected output:
Note that Swift’s “AnyObject” has the same
It’s not clear which part of that is giving you trouble, but I was able to do this in a playground (Swift 4, Xcode 9), and got the expected output:
Note that Swift’s “AnyObject” has the same
|
By
Quincey Morris
·
#152
·
|
|
respondsToSelector in Swift
How to translate this into Swift
- (id)transformedValue:(id)value
{
if ( ![value respondsToSelector: @selector(doubleValue) ] )
{
NSLog(@"%s Error value %@ %@",__FUNCTION__, [value class],
How to translate this into Swift
- (id)transformedValue:(id)value
{
if ( ![value respondsToSelector: @selector(doubleValue) ] )
{
NSLog(@"%s Error value %@ %@",__FUNCTION__, [value class],
|
By
Gerriet M. Denkmann
·
#151
·
|
|
Re: How to print class name in Swift
My understanding is that an optional is just a type that wraps another type. So you need to unwrap the optional before calling String(describing: type(of: value))) to get the class name that you are
My understanding is that an optional is just a type that wraps another type. So you need to unwrap the optional before calling String(describing: type(of: value))) to get the class name that you are
|
By
Dave Fernandes
·
#150
·
|
|
How to print class name in Swift
This works (prints either null, NSString or NSNumber)
- (id)transformedValue:(id)value
{
NSLog(@"%s value %@ %@",__FUNCTION__, [value class], value);
…
}
But my Swift version:
override func
This works (prints either null, NSString or NSNumber)
- (id)transformedValue:(id)value
{
NSLog(@"%s value %@ %@",__FUNCTION__, [value class], value);
…
}
But my Swift version:
override func
|
By
Gerriet M. Denkmann
·
#149
·
|
|
Re: nib loading error on foreign systems
On 8/2/2017 10:57 AM, James Walker wrote:
Sorry, I misunderstood the situation. The Xcode debugger was lying to me about some member variables being NULL. The real problem was
On 8/2/2017 10:57 AM, James Walker wrote:
Sorry, I misunderstood the situation. The Xcode debugger was lying to me about some member variables being NULL. The real problem was
|
By
James Walker
·
#148
·
|
|
nib loading error on foreign systems
I have a view controller that loads from a nib. I only have the nib in English, no other localizations. When I run with my normal American English setup, all is well. But if I set the
I have a view controller that loads from a nib. I only have the nib in English, no other localizations. When I run with my normal American English setup, all is well. But if I set the
|
By
James Walker
·
#147
·
|
|
SceeneKit not picking up arrow keys correctly?
Hi all,
I'm following a tutorial on SceneKit, which sets up a few nodes, a camera, and some keyboard capturing to let the user arrow around the sceene. The author of the code says it works on his
Hi all,
I'm following a tutorial on SceneKit, which sets up a few nodes, a camera, and some keyboard capturing to let the user arrow around the sceene. The author of the code says it works on his
|
By
Alex Hall
·
#146
·
|
|
Re: Memory management of document modal panels
According to Mike Ash
(https://www.mikeash.com/pyblog/friday-qa-2009-08-14-practical-blocks.html
- see Caveats) self should be being retained.
Apple
According to Mike Ash
(https://www.mikeash.com/pyblog/friday-qa-2009-08-14-practical-blocks.html
- see Caveats) self should be being retained.
Apple
|
By
Jeff Laing
·
#145
·
|