|
Re: APFS & FileSystem attributes
What is HS?
By
Alex Zavatone
·
#196
·
|
|
Re: APFS & FileSystem attributes
You do if you want to test APFS, which is only available for SSD or Fusion disks the last time I checked.
Admittedly, I haven’t yet checked the release notes for the most recent beta, but I've
You do if you want to test APFS, which is only available for SSD or Fusion disks the last time I checked.
Admittedly, I haven’t yet checked the release notes for the most recent beta, but I've
|
By
2551phil
·
#195
·
|
|
Re: Understanding NSNetService and peer-to-peer streaming
This. This. This. This.
Create a VM of your current OS. Duplicate it as needed and make changes to each OS image to suit your needs.
It’s a massive timesaver with fast SSDs.
This. This. This. This.
Create a VM of your current OS. Duplicate it as needed and make changes to each OS image to suit your needs.
It’s a massive timesaver with fast SSDs.
|
By
Alex Zavatone
·
#194
·
|
|
Re: Understanding NSNetService and peer-to-peer streaming
One suggestion for testing on a single machine is to use VMware Fusion to create multiple macOS VMs. You will want a system with decent speed, but the environment should do exactly what you need with
One suggestion for testing on a single machine is to use VMware Fusion to create multiple macOS VMs. You will want a system with decent speed, but the environment should do exactly what you need with
|
By
Jack Brindle
·
#193
·
|
|
Re: Understanding NSNetService and peer-to-peer streaming
This is a follow-up to my question last week.
I got my NSNetService + Streams approach more or less working, with one small problem (i’ll get to that).
But I also checked out Multipeer
This is a follow-up to my question last week.
I got my NSNetService + Streams approach more or less working, with one small problem (i’ll get to that).
But I also checked out Multipeer
|
By
Graham Cox
·
#192
·
|
|
Re: How to store C Arrays as a Property or iVar?
In that light, is my suggestion useless overhead?
In that light, is my suggestion useless overhead?
|
By
Alex Zavatone
·
#191
·
|
|
Re: How to store C Arrays as a Property or iVar?
You can't assign (or compare) arrays in C/C++. You have two options:
(a) Call memcpy:
memcpy(&myArray, &_mArray, sizeof(myArray));
(b) Wrap a struct around the array, since structs are copyable.
You can't assign (or compare) arrays in C/C++. You have two options:
(a) Call memcpy:
memcpy(&myArray, &_mArray, sizeof(myArray));
(b) Wrap a struct around the array, since structs are copyable.
|
By
Jens Alfke
·
#190
·
|
|
Re: How to store C Arrays as a Property or iVar?
Can you publish the actual declarations for myArray and mArray? The ones you show aren’t quite legal and
will be rejected by C compilers.
There isn’t that much different from regular C. In your
Can you publish the actual declarations for myArray and mArray? The ones you show aren’t quite legal and
will be rejected by C compilers.
There isn’t that much different from regular C. In your
|
By
Jack Brindle
·
#189
·
|
|
Re: How to store C Arrays as a Property or iVar?
Yep.
Objective-C is C.
You have to know C to be able to program in Objective-C.
In C, arrays are not first class objects. So you cannot use = to copy arrays (or to take a reference to an array,
Yep.
Objective-C is C.
You have to know C to be able to program in Objective-C.
In C, arrays are not first class objects. So you cannot use = to copy arrays (or to take a reference to an array,
|
By
Pascal Bourguignon
·
#188
·
|
|
Re: How to store C Arrays as a Property or iVar?
You can save them as NSIntegers in an NSMutableArray.
The thing about NSDictionaries and NSArrays is that they need to contain NSObjects that are Cocoa
You can save them as NSIntegers in an NSMutableArray.
The thing about NSDictionaries and NSArrays is that they need to contain NSObjects that are Cocoa
|
By
Alex Zavatone
·
#187
·
|
|
How to store C Arrays as a Property or iVar?
Hi All,
I’ve converted some C code into Objective-C and have some C Array structures like so:
int [10][10]) myArray;
That I want to store in a Property or iVar inside a Wrapper Class. How do I
Hi All,
I’ve converted some C code into Objective-C and have some C Array structures like so:
int [10][10]) myArray;
That I want to store in a Property or iVar inside a Wrapper Class. How do I
|
By
Dave
·
#186
·
|
|
Re: Understanding NSNetService and peer-to-peer streaming
Right. You need to keep track of that yourself, like with a Peer class that can hold onto those streams and act as their delegate.
NSNetService doesn't really have anything to do with those streams.
Right. You need to keep track of that yourself, like with a Peer class that can hold onto those streams and act as their delegate.
NSNetService doesn't really have anything to do with those streams.
|
By
Jens Alfke
·
#185
·
|
|
Re: Understanding NSNetService and peer-to-peer streaming
I recommend you ask this question in the hated-by-some developer forums (forums.developer.apple.com). Quinn the Eskimo fields questions there most days, and he’s exactly the person to give you the
I recommend you ask this question in the hated-by-some developer forums (forums.developer.apple.com). Quinn the Eskimo fields questions there most days, and he’s exactly the person to give you the
|
By
Quincey Morris
·
#184
·
|
|
Understanding NSNetService and peer-to-peer streaming
Hi all,
I’m trying to add a peer-to-peer communication feature to a game I’m developing.
So far it’s half working, which given the paucity of documentation, I’m actually quite proud
Hi all,
I’m trying to add a peer-to-peer communication feature to a game I’m developing.
So far it’s half working, which given the paucity of documentation, I’m actually quite proud
|
By
Graham Cox
·
#183
·
|
|
Re: APFS & FileSystem attributes
On Tue, 15 Aug 2017 22:25:41 +0700, 2551phil said:
You could presumably test it in a VM, or using a spare old external drive or USB key, or even just create a disk image. You don't need an extra Mac
On Tue, 15 Aug 2017 22:25:41 +0700, 2551phil said:
You could presumably test it in a VM, or using a spare old external drive or USB key, or even just create a disk image. You don't need an extra Mac
|
By
Sean McBride
·
#182
·
|
|
Re: APFS & FileSystem attributes
It wouldn’t be a valid filesystem if it didn’t support the system calls like stat() that NSFileManager uses to get file attributes.
Now, not every filesystem supports every attribute (you’re not
It wouldn’t be a valid filesystem if it didn’t support the system calls like stat() that NSFileManager uses to get file attributes.
Now, not every filesystem supports every attribute (you’re not
|
By
Jens Alfke
·
#181
·
|
|
Re: APFS & FileSystem attributes
Breaking stuff isn’t always a red line for Apple, but from your reaction I’ll take it that there’d have been an righteous outcry by now were it the case.
I’ve had my head stuck in the sand as
Breaking stuff isn’t always a red line for Apple, but from your reaction I’ll take it that there’d have been an righteous outcry by now were it the case.
I’ve had my head stuck in the sand as
|
By
2551phil
·
#180
·
|
|
Re: APFS & FileSystem attributes
If it did, it would break most apps, so no.
—Jens
If it did, it would break most apps, so no.
—Jens
|
By
Jens Alfke
·
#179
·
|
|
APFS & FileSystem attributes
Apologies if this is a dumb question, but I'm wondering whether we'll still be able to call NSFileManager api's like attributesOfItem and get back things like NSFileReferenceCount and the like.
Does
Apologies if this is a dumb question, but I'm wondering whether we'll still be able to call NSFileManager api's like attributesOfItem and get back things like NSFileReferenceCount and the like.
Does
|
By
2551phil
·
#178
·
|
|
Re: "broken pipe", but not when debugging...
Jens;
Thank you for the opportunity to expound on this. See below…
A look at the discussion for NSFileHandle’s writeData: method provides the following:
"This method raises an exception if the
Jens;
Thank you for the opportunity to expound on this. See below…
A look at the discussion for NSFileHandle’s writeData: method provides the following:
"This method raises an exception if the
|
By
Jack Brindle
·
#177
·
|