lots of ios file related updates, now use URLs internally. icons added.

This commit is contained in:
essej
2022-04-13 13:48:09 -04:00
parent e2178da076
commit dd89d80959
18 changed files with 169 additions and 69 deletions

View File

@ -59,4 +59,23 @@ void getSafeAreaInsets(void * component, float & top, float & bottom, float & le
}
}
bool urlBookmarkToBinaryData(void * bookmark, const void * & retdata, size_t & retsize)
{
NSData * data = (NSData*) bookmark;
if (data && [data isKindOfClass:NSData.class]) {
retdata = [data bytes];
retsize = [data length];
return true;
}
return false;
}
void * binaryDataToUrlBookmark(const void * data, size_t size)
{
NSData * nsdata = [[NSData alloc] initWithBytes:data length:size];
return nsdata;
}
#endif