I've been using Swift with Couchbase Lite for a year now and I've recently
upgraded my app to Xcode 7 and Swift 2.0. Its working fine, although the
Couchbase Swift docs have not been updated to 2.0 yet.
On Tuesday, September 15, 2015 at 6:30:32 PM UTC-4, adam wilson wrote:
>
> Has there been
I have an iOS/swift project with two views that both use CBLUITableSource
to represent two different lists of CBLModel objects, games and players.
Each type of CBLModel object holds a reference to another POSO which is
lazily calculated because its expensive to do so. Its the stats for the
https://github.com/couchbase/couchbase-lite-ios/issues/542
On Monday, December 1, 2014 11:38:01 AM UTC-5, Jens Alfke wrote:
Weird. Please file a bug report!
—Jens
--
You received this message because you are subscribed to the Google Groups
Couchbase Mobile group.
To unsubscribe from this
I have an iOS app that uses a few live queries and they all work quite
well, except the first time the app is launched. My app is a basic CRUD app
showing CBLModels in lists. The app starts with an empty table backed by a
CBLUITableSource. Nothing else can happen until at least one CBLModel is
, Julian Paas wrote:
I have an iOS app that uses a few live queries and they all work quite
well, except the first time the app is launched. My app is a basic CRUD app
showing CBLModels in lists. The app starts with an empty table backed by a
CBLUITableSource. Nothing else can happen until
))
testModel.save(error)
assert(error == nil, Unable to create test model)
println(Created TestModel: \(testModel.document.properties))
}
On Monday, September 15, 2014 4:43:44 PM UTC-4, Julian Paas wrote:
I have a CBLModel with an array of objects that implement CBLJSONEncoding
you say that you have working swift code to use CBLModel and link the
properties right with @NSManaged?
If so, can you share a class? As an example?
Thank you
On Tuesday, September 16, 2014 3:23:29 AM UTC+2, Julian Paas wrote:
Yes @NSManaged is the same as @dynamic and is working nicely
}
On Wednesday, October 15, 2014 8:26:45 AM UTC-4, Karel-Jan Van Haute wrote:
Can You share the method?
On Tuesday, October 14, 2014 3:38:42 PM UTC+2, Julian Paas wrote:
No I never figured it out. I worked around it by creating a factory
method on my class for creating new instances
. Did you found the reason why you get the
error?
On Wednesday, September 24, 2014 3:57:05 AM UTC+2, Julian Paas wrote:
I'm doing this in my bridging header which includes all of the CBL
headers. But to be sure I did actually try explicitly adding CBLDocument.h
but it didn't help.
#import
I adapted that code into my test class and it does find the selector. I had
trouble with the objc_msgSend because the new LLVM in Xcode has introduced
strict type checking and I haven't figured out yet how to invoke it
properly.
Next step I suppose would be to try including the library as
I'm new enough to Swift I don't know the answers to those questions either.
Its still early days and hard to find answers to a lot of questions.
On Tuesday, September 16, 2014 11:46:49 AM UTC-4, Jens Alfke wrote:
On Sep 16, 2014, at 7:04 AM, Julian Paas julia...@osaaru.com
javascript: wrote
I have a CBLModel with an array of objects that implement CBLJSONEncoding,
but every time I try to access the array I get
fatal error: NSArray element failed to match the Swift Array Element type
I have tried to implement a class method to return the class for this array
as follows, but it
Does anyone know how to override initWithDocument on CBLModel subclasses? I
have tried as:
init(document: CBLDocument!) {
super.init(document)
}
But it tells me use of undeclared type CBLDocument. CBLDocument is
definitely not unknown I use it in plenty of other swift classes. It only
appear to return an
objective-C Class.
On Monday, September 15, 2014 6:59:33 PM UTC-4, Jens Alfke wrote:
On Sep 15, 2014, at 1:43 PM, Julian Paas julia...@osaaru.com
javascript: wrote:
@NSManaged var gamePlayerStats: [PlayerStats]
I haven't gotten into Swift programming yet
14 matches
Mail list logo