"do not back up" attribute iOS

ddas dev at digifilm.com
Fri Dec 9 12:09:15 CST 2011


Nothing dramatic if the following piece of code is incorporated.

Listing 1  Setting the Extended Attribute

#include <sys/xattr.h>
- (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL
{
    const char* filePath = [[URL path] fileSystemRepresentation];
 
    const char* attrName = "com.apple.MobileBackup";
    u_int8_t attrValue = 1;
 
    int result = setxattr(filePath, attrName, &attrValue, sizeof(attrValue), 0, 0);
    return result == 0;
}

On Dec 9, 2011, at 1:00 PM, François Chaplais wrote:

> OK, I read the link. Interesting stuff, but I do not see anything dramatic. To me it seems there will be a flurry of app updates; I think the advent of iCloud is a major OS increment.
> I sympathize, you know. I have to reload all my Marvel Comics because of that, and I do not have WIFI at home (I am on Ethernet), so I know the pain.
> Best,
> 	François
> Le 9 déc. 2011 à 18:47, ddas a écrit :
> 
>> No one does it from last week on.
>> I have one app in the store that does it.
>> 
>> I have 2 rejections in the last week.
>> 
>> And I am not the only one.
>> 
>> http://www.chrisboyd.net/2011/11/icloud-and-the-new-ios-data-storage-guidelines/?utm_source=rss&utm_medium=rss&utm_campaign=icloud-and-the-new-ios-data-storage-guidelines
>> 
>> If you follow old rules. You will be rejected.
>> 
>> 
>> On Dec 9, 2011, at 12:33 PM, François Chaplais wrote:
>> 
>>> You CAN store persistent data. GoodReader does it, many others do it. What has change is that you must do it into the proper application directory and not in 'tmp' or 'cache' folders, which are obviously not right places for storing persistent data.
>>> François
>>> Le 9 déc. 2011 à 15:22, ddas a écrit :
>>> 
>>>> That is all history as far as Apple is concerned.
>>>> 
>>>> Apple has started enforcing the 5.01 guidelines and is rejecting apps en masse.
>>>> 
>>>> Any app that downloads data and wants it to persist is in for a nasty shock.
>>>> 
>>>> Revolution as it stands now is a crippled tool for iOS.
>>>> 
>>>> This is a critical fix.
>>>> 
>>>> I am amazed that Revolution is not hip to this.
>>>> http://developmentseed.org/blog/2011/11/11/apple-resolves-issues-offline-caches-ios/
>>>> 
>>>> Regards,
>>>> Debdoot
>>>> 
>>>> http://developer.apple.com/library/ios/#qa/qa1719/_index.html
>>>> 
>>>> 
>>> 
>>> 
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list