I need to support iOS and OSX in my shared library, whats the best Macro / Practise for conditioning iOS and OSX code
the bellow code doesn't work for some reason :/
- (NSString *)hostName {
#ifdef TARGET_OS_IPHONE
return [[UIDevice currentDevice] name];
#elif TARGET_OS_MAC
return [[NSHost currentHost] localizedName];
#endif
}
Unfortunately excel for IOS devices (iPad, Iphone etc.) doesn't support this function (yet). If you really need the macro's to function it is advised to open the file within a windows or osx version of excel. You can also recognize an excel file with macro's to the extension, which is xlsm (instead of.xls or xlsx).
Unfortunately excel for IOS devices (iPad, Iphone etc.) doesn't support this function (yet). If you really need the macro's to function it is advised to open the file within a windows or osx version of excel. You can also recognize an excel file with macro's to the extension, which is xlsm (instead of .xls or xlsx). Good luck!
It is defined by default when you're compiling code for PowerPC architecutres. It is not defined when you use the -malign-mac68k compiler switch, nor is it defined on Intel architectures. This macro is defined if Mach system calls are supported. This macro is defined in any Apple computer.
I don't know if you know about 'macro's' but it is a code in VBA (Visual Basic for Applications) which expands the use of Excel. I see you are using an iPad to open the file and that is where the problem kicks in.
Two issues:
See: Which conditional compile to use to switch between Mac and iPhone specific code?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With