|
Re: APFS & FileSystem attributes
On 8/21/2017 8:44 AM, 2551phil wrote:
I was able to make a disk image with APFS format, and it wasn't in the latest beta. I didn't try making an APFS boot disk, which you might need
On 8/21/2017 8:44 AM, 2551phil wrote:
I was able to make a disk image with APFS format, and it wasn't in the latest beta. I didn't try making an APFS boot disk, which you might need
|
By
James Walker
·
#204
·
|
|
Re: How to store C Arrays as a Property or iVar?
(IIRC you suggested using an NSMutableArray of NSNumbers?) Honestly, it depends. It does have overhead, although not as much as it used to, since NSNumbers of reasonable-size integers don't allocate
(IIRC you suggested using an NSMutableArray of NSNumbers?) Honestly, it depends. It does have overhead, although not as much as it used to, since NSNumbers of reasonable-size integers don't allocate
|
By
Jens Alfke
·
#203
·
|
|
Re: How to store C Arrays as a Property or iVar?
Hi Jens,
You solved two problem in one with your last post - thanks a lot!
I had some other information that was being passed back and forth and creating a structure allowed me to solve the Array
Hi Jens,
You solved two problem in one with your last post - thanks a lot!
I had some other information that was being passed back and forth and creating a structure allowed me to solve the Array
|
By
Dave
·
#202
·
|
|
Re: Understanding NSNetService and peer-to-peer streaming
Yes, this makes total sense. I guess I just had a blonde moment (I’m not even blonde) and didn’t think of it.
I do use VMWare for testing, though unfortunately I need to pay for the upgrade to
Yes, this makes total sense. I guess I just had a blonde moment (I’m not even blonde) and didn’t think of it.
I do use VMWare for testing, though unfortunately I need to pay for the upgrade to
|
By
Graham Cox
·
#201
·
|
|
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
·
|
|
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: 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: APFS & FileSystem attributes
High Sierra.
By
2551phil
·
#197
·
|
|
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
·
|