|
Re: How to store C Arrays as a Property or iVar?
NSData.bytes is a property of type "void*". And NSPointerFunctions even has a property whose type is a C function pointer:
@property (nullable) BOOL (*isEqualFunction)(const void *item1, const
NSData.bytes is a property of type "void*". And NSPointerFunctions even has a property whose type is a C function pointer:
@property (nullable) BOOL (*isEqualFunction)(const void *item1, const
|
By
Jens Alfke
·
#227
·
|
|
Re: Compiling Conditionally depending on OS
TARGET_OS_MAC is incorrect — for some reason that evaluates to true on all Apple platforms. You want TARGET_OS_OSX instead. Here's the full list as documented in <TargetConditionals.h>, which is the
TARGET_OS_MAC is incorrect — for some reason that evaluates to true on all Apple platforms. You want TARGET_OS_OSX instead. Here's the full list as documented in <TargetConditionals.h>, which is the
|
By
Jens Alfke
·
#226
·
|
|
Re: How to store C Arrays as a Property or iVar?
If you want an actual property encapsulating your C-based array, you could keep it within an NSMutableData object since it’s just bytes. I’m not sure if an NSData object would keep the actual
If you want an actual property encapsulating your C-based array, you could keep it within an NSMutableData object since it’s just bytes. I’m not sure if an NSData object would keep the actual
|
By
Gary L. Wade
·
#225
·
|
|
Re: Compiling Conditionally depending on OS
Dave, close to this topic, I make sure to add a build shell script to export the environment variables to my build process so that on a build, I can get an list of all the build variables for the
Dave, close to this topic, I make sure to add a build shell script to export the environment variables to my build process so that on a build, I can get an list of all the build variables for the
|
By
Alex Zavatone
·
#224
·
|
|
Re: How to store C Arrays as a Property or iVar?
You could do that, but I’m doing millions of calculations on the elements of the Array, so it would be a lot slower and much more complex than needed……
You could do that, but I’m doing millions of calculations on the elements of the Array, so it would be a lot slower and much more complex than needed……
|
By
Dave
·
#223
·
|
|
Re: How to store C Arrays as a Property or iVar?
Well, you can’t use them as a property anyway, C Arrays *have* to be iVar’s, but I wrap a “Property Wrapper” around the iVars!
Well, you can’t use them as a property anyway, C Arrays *have* to be iVar’s, but I wrap a “Property Wrapper” around the iVars!
|
By
Dave
·
#222
·
|
|
Compiling Conditionally depending on OS
Hi all,
How do I compile differently depending on the Platform I am compiling for?
I have an iOS project, but using the these macros:
#if TARGET_OS_IPHONE
// iOS code
#endif
#if
Hi all,
How do I compile differently depending on the Platform I am compiling for?
I have an iOS project, but using the these macros:
#if TARGET_OS_IPHONE
// iOS code
#endif
#if
|
By
Dave
·
#221
·
|
|
Re: How to store C Arrays as a Property or iVar?
Is there a reason why he shouldn’t represent the values as NIntegers like I suggested before? I didn’t see a response to my suggestion explaining why it’s not a good idea.
[myArray
Is there a reason why he shouldn’t represent the values as NIntegers like I suggested before? I didn’t see a response to my suggestion explaining why it’s not a good idea.
[myArray
|
By
Alex Zavatone
·
#220
·
|
|
Re: How to store C Arrays as a Property or iVar?
Um, the headline says "How to store C Arrays as a Property ..." so at least one person (the original poster) has said this is about properties.
My experience was that properties that are non-pointers
Um, the headline says "How to store C Arrays as a Property ..." so at least one person (the original poster) has said this is about properties.
My experience was that properties that are non-pointers
|
By
Jeff Laing
·
#219
·
|
|
Re: How to store C Arrays as a Property or iVar?
No one said this was a property. It's just an instance variable.
Also, it's fine for properties to be C types — after all, there are plenty of integer or boolean properties, and UIKit and AppKit
No one said this was a property. It's just an instance variable.
Also, it's fine for properties to be C types — after all, there are plenty of integer or boolean properties, and UIKit and AppKit
|
By
Jens Alfke
·
#218
·
|
|
Re: How to store C Arrays as a Property or iVar?
Can I ask if this discussion is academic or you have already tried?
The reason I ask is that property values tend to need to support the NSObject protocol (ie, do the retain/release thing, whether
Can I ask if this discussion is academic or you have already tried?
The reason I ask is that property values tend to need to support the NSObject protocol (ie, do the retain/release thing, whether
|
By
Jeff Laing
·
#217
·
|
|
Re: Problems registering AppID on the Apple Developer Site
Whenever you find what you believe to be a bug in Apple's software or web site, write a bug report about it. You might have experienced an edge case no one has yet tested.
--
Gary L.
Whenever you find what you believe to be a bug in Apple's software or web site, write a bug report about it. You might have experienced an edge case no one has yet tested.
--
Gary L.
|
By
Gary L. Wade
·
#216
·
|
|
Re: Problems registering AppID on the Apple Developer Site
Every where look there are glitches and bugs! What a total nightmare - thanks for letting me know, I thought I was going crazy!
Cheers
Dave
Every where look there are glitches and bugs! What a total nightmare - thanks for letting me know, I thought I was going crazy!
Cheers
Dave
|
By
Dave
·
#215
·
|
|
Re: APFS & FileSystem attributes
I’ve heard it *rumoured* (YMMV) that the public release of HS will only support bootable APFS on SSD-only machines - no support for platters or even Fusion platter/ssd drives.
That’s a step-back
I’ve heard it *rumoured* (YMMV) that the public release of HS will only support bootable APFS on SSD-only machines - no support for platters or even Fusion platter/ssd drives.
That’s a step-back
|
By
2551phil
·
#214
·
|
|
Re: Problems registering AppID on the Apple Developer Site
Yes, Apple won’t let you. Yay, Apple!
As long as they are not enabled in the Capabilities part of your project settings, you should be OK.
I have felt your pain many many times, good sir. You
Yes, Apple won’t let you. Yay, Apple!
As long as they are not enabled in the Capabilities part of your project settings, you should be OK.
I have felt your pain many many times, good sir. You
|
By
Alex Zavatone
·
#213
·
|
|
Problems registering AppID on the Apple Developer Site
Hi,
I need to registers 6 Apps on the Apple Developer Site.
I’ve done 3 ok, there are LTWiPhoneAppX, LTWiPadAppX and LTWMacAppX these 3 all use GameKit and In-App Purchase and they are enabled
Hi,
I need to registers 6 Apps on the Apple Developer Site.
I’ve done 3 ok, there are LTWiPhoneAppX, LTWiPadAppX and LTWMacAppX these 3 all use GameKit and In-App Purchase and they are enabled
|
By
Dave
·
#212
·
|
|
Re: iOS Reachability
There are much newer versions of this. Check on Apple’s sample files and on Github. Stay away from the old copy that you have.
There are much newer versions of this. Check on Apple’s sample files and on Github. Stay away from the old copy that you have.
|
By
Alex Zavatone
·
#211
·
|
|
Re: iOS Reachability
You can use this:
https://github.com/ashleymills/Reachability.swift
Nimesh
You can use this:
https://github.com/ashleymills/Reachability.swift
Nimesh
|
By
Nimesh Neema <nimeshneema@...>
·
#210
·
|
|
iOS Reachability
Hi,
A while back I included some code from a sample project that setup Game Center/Kit. This code used a Class called “ Reachability”:
Copyright (c) 2011, Tony Million.
All rights
Hi,
A while back I included some code from a sample project that setup Game Center/Kit. This code used a Class called “ Reachability”:
Copyright (c) 2011, Tony Million.
All rights
|
By
Dave
·
#209
·
|
|
Re: How to store C Arrays as a Property or iVar?
The time to read and unwrap an integer from an NSArray is probably under a microsecond, so it's unlikely to be a performance problem.
But there's nothing wrong with using a C array. It's what I'd do,
The time to read and unwrap an integer from an NSArray is probably under a microsecond, so it's unlikely to be a performance problem.
But there's nothing wrong with using a C array. It's what I'd do,
|
By
Jens Alfke
·
#208
·
|