Please merge this account with user 742512

Dec
15
comment Cloud Kit notifications
Yup that seemed to be the issue. I deleted all subscriptions and now is working. Thanks!
Dec
15
accepted Cloud Kit notifications
Dec
12
revised Cloud Kit notifications
added 231 characters in body
Dec
12
comment Cloud Kit notifications
Ok. I've tried this but can't seem to get this to work. Is there a different id besides %@ inside the string I should be using for swift code? My notification just repeats the string "Added: %@" and doesnt replace with my record data.
Dec
9
asked Cloud Kit notifications
Nov
28
awarded Yearling
Nov
24
comment Why can't I use subscripting on a CKRecord object in swift?
It even says in the header file: In addition to objectForKey: and setObject:forKey:, dictionary-style subscripting (record[key] and record[key] = value) can be used to get and set values.
Nov
24
asked Why can't I use subscripting on a CKRecord object in swift?
Sep
24
awarded Autobiographer
Sep
24
awarded Autobiographer
Sep
24
awarded Autobiographer
Aug
27
comment Creating mock cloud kit objects for unit testing
After a quick look it seems like a MockProtocolExtension is totally doable if not completely insane. A lot of extra boiler plate. In the midst of this code I've realized that since CKDatabase takes so many completionHandlers: I could just have these completion handlers be methods of my class (somehow) and call these methods with my unit tests. I'd never mock CKDatabase but I would call the completion handlers/methods in my unit tests making sure I aped all the possible returns I could get from CKDatabase.
Aug
27
comment Creating mock cloud kit objects for unit testing
My newest thought is to create an protocol extension of CKDatabase with my own wrapper methods to CKDatabase methods. Since my object would be a Protocol instance of unknown class type I could then mock an object of that protocol. Phew. Maybe to much spaghetti here.
Aug
27
comment Creating mock cloud kit objects for unit testing
Thanks. I'll check that out. I'm assuming then you don't do unit testing for the Cloud Kit portion in that framework but mock your DAO object only.
Aug
25
asked Creating mock cloud kit objects for unit testing
Jun
18
comment Swift to Objective-C header not created in Xcode 6
I seemed to have followed these 2 steps and still seem to be having issues. I'll try starting a new project without the space in the name and see if i can get it to work.
Jun
13
comment Do you have to bridge to ObjectiveC for float in swift?
That's fine (Float 32 and Double 64). But never had to deal with this problem in Objective C for some reason.
Jun
13
comment Do you have to bridge to ObjectiveC for float in swift?
Appears to be related to whether the target is 64 bit or 32 bit
Jun
13
asked Do you have to bridge to ObjectiveC for float in swift?
Jun
12
awarded Scholar
1 2 3