Search results for

“translate scheme”

6,670 results found

Post

Replies

Boosts

Views

Activity

Reply to Can we make CloudKit only app
We ran into this rejected too and wound up having to provide default data for everything. I know, it seems weird to have this wealth of data out there on iCloud and everything seems to be leading to cloud based data, but (apparently) it's gotta run for those hold-outs that don't want to use it. You might actually have to provide some recepies in your bundle and update them to your local storage from CloudKit.The scheme that I used is to always refer to local storage for any views and run the update process as a background operation. The update process overwrites/adds to the local storage so it's available on the next read. It simplifies the code not having to worry about which source you're using at the time. This also covers the 'occasionally connected' scenario. If you allow the end user to write to the data then you'll need to make sure you don't overwrite something they changed. Perhaps store their notes in separate annotation file(s).HTH,Mike
Jul ’15
xCode 6.4 scheme names
Hi,All my active schemes names seem to be corrupted they are showing a GUID rather than the iOS version number.(This is the same in all projects)xCode 6.4 (6E35b)The scheme look likeiPhone 6 (6C .... a guid here ... )iPhone 6 (4A .... a 2nd GUID guid here ... ).... etcRather thaniPhone 6 (8.1)iPhone 6 (8.2).... etcEverything compiles correctly, but it makes it hard to know which version of iOS I am compiling against.I also have xCode 7.0 (&A121l) installed, which shows the Scheme names correctly.Any ideas on how to fix this ?Cheers,Phil
9
0
725
Jul ’15
CGPDF<...> - where are the setters?
Hi there,Is there any way to create PDF objects (e.g. a PDF-dictionary with parameters that are needed by a custom PDF producer/consumer/viewer) with CGPDF<...> or do I have to write my own parser and create new trailers, xref etc. in order to add new objects to the PDF? As I understand it, CG translates all drawing calls of its graphics context into the correct PDF counterparts when creating a PDF - but I have custom data/objects (e.g. for annotations, threads etc.) that should be stored in the PDF but that obviously can't be automatically created by CG.I can only find all these gettersGetting Data from a DictionaryCGPDFDictionaryGetArrayCGPDFDictionaryGetBooleanCGPDFDictionaryGetCountCGPDFDictionaryGetDictionaryCGPDFDictionaryGetIntegerCGPDFDictionaryGetNameCGPDFDictionaryGetNumberCGPDFDictionaryGetObjectCGPDFDictionaryGetStreamCGPDFDictionaryGetStringAny help would be appreciated ?And by the way - does anyone know some links where I can find out what one can achieve in the real world with th
3
0
935
Jul ’15
Hide/Remove "Back to previous app" button
Hello,I have two apps which have some communication by URL schemes. With iOS9, when you open a new URL appears a new button back in upper left corner of the opening app but that behaviour does not have sense in this kind of apps. I would like to remove or hide it, Does anyone know how can I handle it? Is there a new API to do it?I have thought that It could be a good idea hide the status bar using UIStatusBarHidden --> true and UIViewControllerBasedStatusBarAppearance --> false in the plist file but I don't know if it is the best approach.Thank you,Regards.
0
0
1.2k
Jul ’15
Custom size for tableview paging
I have a UITableView with multiple sections, each with a header. The table's sizing is such that one header and one cell take up the entire frame of the table. I would like to allow the user to scroll the table only one cell at a time. When I set paging = enabled, the scrolling does not work as intended, since the table scrolls one entire table frame at a time, rather than one cell at a time. This causes an undesired offset that keeps getting larger as you scroll the table. My research thus far suggests that I need to override scrollViewWillBeginDragging. See for example UITableView with custom paging-like behaviour on stack overflow. But every post that I read on this topic must have been before Swift, because it's all in Objective C. Please suggest Swift code to accomplish single cell paging for a tableview with section headers. Although paging itself may need to be disabled, the solution should be as close to true paging as possible. Below is code for my table's sizing. The table's frame size is 475. func
0
0
1.1k
Jul ’15
`-drawInRect` seems to be different in 10.11?
Edit: Filed a Radar: # 21941373We have an app that works in 10.10, but has this issue in 10.11.We call `-drawRect` in a `NSGraphicsContext` on an `NSImage` that is properly set in both OSBut in 10.11 this `NSImage` doesn't get drawn.I'm pretty novice, but I have been debugging for quite a while to get to where I'm at now, and I'm just plain stuck. Was seeing if anybody ran into this before, or has any idea why this could be.Here is the pertinent code:(the `layer` object is a `CGLayerRef` that is passed into this method, from the `-drawRect` method)Here is how the layer is instantiated:NSRect scaledRect = [Helpers scaleRect:rect byScale:[self backingScaleFactorRelativeToZoom]]; CGSize size = NSSizeToCGSize(rect.size); size_t width = size.width; size_t height = size.height; size_t bitsPerComponent = 8; size_t bytesPerRow = (width * 4+ 0x0000000F) & ~0x0000000F; / size_t dataSize = bytesPerRow * height; void* data = calloc(1, dataSize); CGColorSpaceRef colorspace = [[[_imageController document] captureColorS
Topic: UI Frameworks SubTopic: AppKit Tags:
3
0
964
Jul ’15
Can't change app meta data in iTunesConnect
Hey Guys!I have added a new localization to my app and therefore i wanted to add also translated metadata to my app in iTunesConnect. I have added a new language from the drop-down menu on the upper right and updated all required meta data but the site keeps telling me We're temporarily unable to save your changes. Please try again later.. That problem persists since yesterday. Is there any solution for this? Or is it more like a wait and be patient kind of problem. 😉Thanks!Gregor
1
0
347
Jul ’15
Beta 4: huge bug with compute kernel (radar 21931401)
All my compute kernels, that work with beta 3, are now blocked at runtime with this error :failed assertion `total used threadgroupMemoryLength(34816) must be <= 32768.None of them exceed this limit ! In fact, every time I try to set a threadgroup buffer with setThreadgroupMemoryLength, even with a very small threadgroup buffer, this error occurs. Thus, compute kernels are totally unusable !Does anybody else have the same issue ?By the way, the buffer size are now restricted to 256 MB... This is not the case with OpenCL...---- Edit -----The compute kernels are totally blocked by this assertion... Something like :assert(length + limit <= limit)That, in my opinion, can not be solved on earth...The problem seems to be in the drivers, as Xcode beta 3 (and the previous framework) doesn't solve it.Do we have to wait 2 weeks for beta 5 ?!!---- Edit 2 -----We have tested on a last 2013 21 iMac with Nvidia GeForce GT 750M, and there is no problem !---- Workaround -----You can (temporarily) disable the Metal API
4
0
740
Jul ’15
Reply to FPS - Client test SDK
If your resourceLoader:shouldWaitForLoadingOfRequestedResource: method is never getting called then it might be because you are not specifying a non-standard URI scheme in your playlist EXT-X-KEY tag. See the section titled Preparing Content for FPS on pg. 33 of the FPS Programming Guide for an example FPS EXT-X-KEY tag with non-standard URI (e.g. skd://key65) in a streaming playlist. Note the URI is not intended to be a reference to the key on the server; rather, it is to be used as a content identifier.
Topic: Media Technologies SubTopic: Streaming Tags:
Jul ’15
Reply to How to use AUAudioUnitPreset
I asked our resident Core Audio Plumber to confirm my understanding of this object and here's some information I hope you find helpful.An AUAudioUnitPreset is just a translation of AUPreset -- a name and number that refer to a canned preset.typedef struct AUPreset { SInt32 presetNumber; CFStringRef presetName;} AUPreset;NS_CLASS_AVAILABLE(10_11, 9_0)@interface AUAudioUnitPreset : NSObject <NSSecureCoding>/! @property number @brief The preset's unique numeric identifier.*/@property (NS_NONATOMIC_IOSONLY) NSInteger number;/! @property name @brief The preset's name.*/@property (NS_NONATOMIC_IOSONLY, copy) NSString *name;@endWhen you talk about saving and restoring parameters values, that's the fullState dictionary which maps to the V2 kAudioUnitProperty_ClassInfo property. See AUAudioUnit.h & AudioUnitProperties.hfactoryPresets should return an array of AUAudioUnitPreset(s). A host can display these and let a user select a preset though currentPreset which accepts a selected AUAudioUnitPreset.
Topic: Media Technologies SubTopic: Audio Tags:
Jul ’15
how to make a connection between view controller and document object under storyboard enabled app
I am trying to make a migration of my existing OSX app to make use of storyboard and have some difficuty along the way. Traditionally the window contoller loads the nib file so that I can easily find out the document object which should be connected to the object controllers contained in the nib file by referencing the window controller's document property via file's owner reference.However under storyboard scheme, window and content view are separated so that the object controllers contained in the view controller scene have no direct access to the window controller. Since under storyboard scheme, view controller should act like file's owner, I believe view controller should have the capability to find out the related document object but I could not find it so far.Would someone please suggest me the good way to make connection between view controller and the related document object?The only (ugly) way I found so far is something like below:within view controller's viewDidAppear method,-(voi
Topic: UI Frameworks SubTopic: AppKit Tags:
1
0
239
Jul ’15
Reply to Can we make CloudKit only app
We ran into this rejected too and wound up having to provide default data for everything. I know, it seems weird to have this wealth of data out there on iCloud and everything seems to be leading to cloud based data, but (apparently) it's gotta run for those hold-outs that don't want to use it. You might actually have to provide some recepies in your bundle and update them to your local storage from CloudKit.The scheme that I used is to always refer to local storage for any views and run the update process as a background operation. The update process overwrites/adds to the local storage so it's available on the next read. It simplifies the code not having to worry about which source you're using at the time. This also covers the 'occasionally connected' scenario. If you allow the end user to write to the data then you'll need to make sure you don't overwrite something they changed. Perhaps store their notes in separate annotation file(s).HTH,Mike
Replies
Boosts
Views
Activity
Jul ’15
xCode 6.4 scheme names
Hi,All my active schemes names seem to be corrupted they are showing a GUID rather than the iOS version number.(This is the same in all projects)xCode 6.4 (6E35b)The scheme look likeiPhone 6 (6C .... a guid here ... )iPhone 6 (4A .... a 2nd GUID guid here ... ).... etcRather thaniPhone 6 (8.1)iPhone 6 (8.2).... etcEverything compiles correctly, but it makes it hard to know which version of iOS I am compiling against.I also have xCode 7.0 (&A121l) installed, which shows the Scheme names correctly.Any ideas on how to fix this ?Cheers,Phil
Replies
9
Boosts
0
Views
725
Activity
Jul ’15
Reply to Unable to Save in iTunes Connect My Apps
Thanks for the response. It appears the translations/locations issue still remains at large 😟Hopefully they'll get it fixed soon.
Replies
Boosts
Views
Activity
Jul ’15
CGPDF<...> - where are the setters?
Hi there,Is there any way to create PDF objects (e.g. a PDF-dictionary with parameters that are needed by a custom PDF producer/consumer/viewer) with CGPDF<...> or do I have to write my own parser and create new trailers, xref etc. in order to add new objects to the PDF? As I understand it, CG translates all drawing calls of its graphics context into the correct PDF counterparts when creating a PDF - but I have custom data/objects (e.g. for annotations, threads etc.) that should be stored in the PDF but that obviously can't be automatically created by CG.I can only find all these gettersGetting Data from a DictionaryCGPDFDictionaryGetArrayCGPDFDictionaryGetBooleanCGPDFDictionaryGetCountCGPDFDictionaryGetDictionaryCGPDFDictionaryGetIntegerCGPDFDictionaryGetNameCGPDFDictionaryGetNumberCGPDFDictionaryGetObjectCGPDFDictionaryGetStreamCGPDFDictionaryGetStringAny help would be appreciated ?And by the way - does anyone know some links where I can find out what one can achieve in the real world with th
Replies
3
Boosts
0
Views
935
Activity
Jul ’15
Reply to CGPDF<...> - where are the setters?
I haven't looked too much into this (I'm going to be shortly in the same situation myself), but I haven't found anything that translates a PDF into an object graph. Have you tried looking at Image IO, a companion framework for Core Graphics?
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’15
Hide/Remove "Back to previous app" button
Hello,I have two apps which have some communication by URL schemes. With iOS9, when you open a new URL appears a new button back in upper left corner of the opening app but that behaviour does not have sense in this kind of apps. I would like to remove or hide it, Does anyone know how can I handle it? Is there a new API to do it?I have thought that It could be a good idea hide the status bar using UIStatusBarHidden --> true and UIViewControllerBasedStatusBarAppearance --> false in the plist file but I don't know if it is the best approach.Thank you,Regards.
Replies
0
Boosts
0
Views
1.2k
Activity
Jul ’15
Reply to Scheme Destination Toolbar Missing
As said, this is a screen width related issue. If the screen is too narrow (for the project), the Scheme and Build Status toolbar areas collide. XCode favors the Build status, so the Scheme disappears. Widden the project size and both reappear.
Replies
Boosts
Views
Activity
Jul ’15
Custom size for tableview paging
I have a UITableView with multiple sections, each with a header. The table's sizing is such that one header and one cell take up the entire frame of the table. I would like to allow the user to scroll the table only one cell at a time. When I set paging = enabled, the scrolling does not work as intended, since the table scrolls one entire table frame at a time, rather than one cell at a time. This causes an undesired offset that keeps getting larger as you scroll the table. My research thus far suggests that I need to override scrollViewWillBeginDragging. See for example UITableView with custom paging-like behaviour on stack overflow. But every post that I read on this topic must have been before Swift, because it's all in Objective C. Please suggest Swift code to accomplish single cell paging for a tableview with section headers. Although paging itself may need to be disabled, the solution should be as close to true paging as possible. Below is code for my table's sizing. The table's frame size is 475. func
Replies
0
Boosts
0
Views
1.1k
Activity
Jul ’15
`-drawInRect` seems to be different in 10.11?
Edit: Filed a Radar: # 21941373We have an app that works in 10.10, but has this issue in 10.11.We call `-drawRect` in a `NSGraphicsContext` on an `NSImage` that is properly set in both OSBut in 10.11 this `NSImage` doesn't get drawn.I'm pretty novice, but I have been debugging for quite a while to get to where I'm at now, and I'm just plain stuck. Was seeing if anybody ran into this before, or has any idea why this could be.Here is the pertinent code:(the `layer` object is a `CGLayerRef` that is passed into this method, from the `-drawRect` method)Here is how the layer is instantiated:NSRect scaledRect = [Helpers scaleRect:rect byScale:[self backingScaleFactorRelativeToZoom]]; CGSize size = NSSizeToCGSize(rect.size); size_t width = size.width; size_t height = size.height; size_t bitsPerComponent = 8; size_t bytesPerRow = (width * 4+ 0x0000000F) & ~0x0000000F; / size_t dataSize = bytesPerRow * height; void* data = calloc(1, dataSize); CGColorSpaceRef colorspace = [[[_imageController document] captureColorS
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
3
Boosts
0
Views
964
Activity
Jul ’15
Can't change app meta data in iTunesConnect
Hey Guys!I have added a new localization to my app and therefore i wanted to add also translated metadata to my app in iTunesConnect. I have added a new language from the drop-down menu on the upper right and updated all required meta data but the site keeps telling me We're temporarily unable to save your changes. Please try again later.. That problem persists since yesterday. Is there any solution for this? Or is it more like a wait and be patient kind of problem. 😉Thanks!Gregor
Replies
1
Boosts
0
Views
347
Activity
Jul ’15
Instruments Record Button Disabled for Device
Has anyone faced the issue where Instruments' record button is disabled when running on device? The only reference to this I could find was on Stack Overflow, where someone suggested making the Profile scheme use the Debug build configuration. I've done that to no avail.
Replies
6
Boosts
0
Views
8.7k
Activity
Jul ’15
Beta 4: huge bug with compute kernel (radar 21931401)
All my compute kernels, that work with beta 3, are now blocked at runtime with this error :failed assertion `total used threadgroupMemoryLength(34816) must be <= 32768.None of them exceed this limit ! In fact, every time I try to set a threadgroup buffer with setThreadgroupMemoryLength, even with a very small threadgroup buffer, this error occurs. Thus, compute kernels are totally unusable !Does anybody else have the same issue ?By the way, the buffer size are now restricted to 256 MB... This is not the case with OpenCL...---- Edit -----The compute kernels are totally blocked by this assertion... Something like :assert(length + limit <= limit)That, in my opinion, can not be solved on earth...The problem seems to be in the drivers, as Xcode beta 3 (and the previous framework) doesn't solve it.Do we have to wait 2 weeks for beta 5 ?!!---- Edit 2 -----We have tested on a last 2013 21 iMac with Nvidia GeForce GT 750M, and there is no problem !---- Workaround -----You can (temporarily) disable the Metal API
Replies
4
Boosts
0
Views
740
Activity
Jul ’15
Reply to FPS - Client test SDK
If your resourceLoader:shouldWaitForLoadingOfRequestedResource: method is never getting called then it might be because you are not specifying a non-standard URI scheme in your playlist EXT-X-KEY tag. See the section titled Preparing Content for FPS on pg. 33 of the FPS Programming Guide for an example FPS EXT-X-KEY tag with non-standard URI (e.g. skd://key65) in a streaming playlist. Note the URI is not intended to be a reference to the key on the server; rather, it is to be used as a content identifier.
Topic: Media Technologies SubTopic: Streaming Tags:
Replies
Boosts
Views
Activity
Jul ’15
Reply to How to use AUAudioUnitPreset
I asked our resident Core Audio Plumber to confirm my understanding of this object and here's some information I hope you find helpful.An AUAudioUnitPreset is just a translation of AUPreset -- a name and number that refer to a canned preset.typedef struct AUPreset { SInt32 presetNumber; CFStringRef presetName;} AUPreset;NS_CLASS_AVAILABLE(10_11, 9_0)@interface AUAudioUnitPreset : NSObject <NSSecureCoding>/! @property number @brief The preset's unique numeric identifier.*/@property (NS_NONATOMIC_IOSONLY) NSInteger number;/! @property name @brief The preset's name.*/@property (NS_NONATOMIC_IOSONLY, copy) NSString *name;@endWhen you talk about saving and restoring parameters values, that's the fullState dictionary which maps to the V2 kAudioUnitProperty_ClassInfo property. See AUAudioUnit.h & AudioUnitProperties.hfactoryPresets should return an array of AUAudioUnitPreset(s). A host can display these and let a user select a preset though currentPreset which accepts a selected AUAudioUnitPreset.
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Jul ’15
how to make a connection between view controller and document object under storyboard enabled app
I am trying to make a migration of my existing OSX app to make use of storyboard and have some difficuty along the way. Traditionally the window contoller loads the nib file so that I can easily find out the document object which should be connected to the object controllers contained in the nib file by referencing the window controller's document property via file's owner reference.However under storyboard scheme, window and content view are separated so that the object controllers contained in the view controller scene have no direct access to the window controller. Since under storyboard scheme, view controller should act like file's owner, I believe view controller should have the capability to find out the related document object but I could not find it so far.Would someone please suggest me the good way to make connection between view controller and the related document object?The only (ugly) way I found so far is something like below:within view controller's viewDidAppear method,-(voi
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
1
Boosts
0
Views
239
Activity
Jul ’15