|
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
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
·
|
|
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: 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
·
|
|
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
·
|
|
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: 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
·
|
|
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?
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?
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?
In that light, is my suggestion useless overhead?
In that light, is my suggestion useless overhead?
|
By
Alex Zavatone
·
#191
·
|
|
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: 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. 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: 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: APFS & FileSystem attributes
What is HS?
By
Alex Zavatone
·
#196
·
|
|
Re: APFS & FileSystem attributes
High Sierra.
By
2551phil
·
#197
·
|
|
Re: APFS & FileSystem attributes
I'm guessing High Sierra, macOS 10.13. Yet another reason why people should use version numbers and not these silly, meaningless code names.
Sent from iCloud's ridiculous UI, so, sorry about the
I'm guessing High Sierra, macOS 10.13. Yet another reason why people should use version numbers and not these silly, meaningless code names.
Sent from iCloud's ridiculous UI, so, sorry about the
|
By
Steve Mills
·
#198
·
|
|
Re: Understanding NSNetService and peer-to-peer streaming
This is a classic newbie networking mistake. (No offense I hope!) TCP is a stream, and there is absolutely no delimiter between writes, and no association between the number of bytes written vs. the
This is a classic newbie networking mistake. (No offense I hope!) TCP is a stream, and there is absolutely no delimiter between writes, and no association between the number of bytes written vs. the
|
By
Jens Alfke
·
#199
·
|
|
Re: Understanding NSNetService and peer-to-peer streaming
None at all! I have very little experience in this area.
Great, I was hoping someone would help me in exactly this way. I thought the length field approach would work, but those with more experience
None at all! I have very little experience in this area.
Great, I was hoping someone would help me in exactly this way. I thought the length field approach would work, but those with more experience
|
By
Graham Cox
·
#200
·
|