iOS Drag and Drop

2017-06-13 Thread Dave
Hi, Can someone point me to some documentation of Drag and Drop for iOS please? I done loads of searches but can’t find a brief intro and some Sample Code. I’ve not been working on iOS for some time and things seem to have changed quite a lot. Cheers Dave

Re: iOS Drag and Drop

2017-06-13 Thread Fulbert Boussaton
I read it (quickly) this morning and it seems quite well informed and well written : https://www.hackingwithswift.com/whats-new-in-ios-11 Flubb. > On 13 Jun 2017, at 15:11, Dave wrote: > > Hi, > > Can someone point me to some documentation of Drag and Drop for iOS please? > > I done loads

Re: iOS Drag and Drop

2017-06-13 Thread Michael Dautermann
> On Jun 13, 2017, at 9:11 AM, Dave wrote: > > Hi, > > Can someone point me to some documentation of Drag and Drop for iOS please? > > I done loads of searches but can’t find a brief intro and some Sample Code. > > I’ve not been working on iOS for some time and things seem to have changed >

Re: iOS Drag and Drop

2017-06-13 Thread Dave
Hi, I should have said I’m using Objective-C not Swift and I’d much rather have some written docs then a video for a number of reasons, the main one being I have limited Internet access at the moment and I can’t find a way to download the videos anymore…… Also, I find it takes much longer to ke

Re: iOS Drag and Drop

2017-06-13 Thread Jens Alfke
It’s right in the developer docs. In Xcode 9 open the doc viewer, flip open UIKit in the outline on the left, then select Drag And Drop. —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator commen

How to validate Core Data attributes ? (example in official doc doesn't work)

2017-06-13 Thread Glen Huang
Hi, I'm trying to validate an attribute of a NSManagedObject, I create a transformable attribute called location, make it CLLocation, and define a method on the object: func validateLocation(_ value: AutoreleasingUnsafeMutablePointer) throws { if value.pointee == nil { fat

Re: How to validate Core Data attributes ? (example in official doc doesn't work)

2017-06-13 Thread Quincey Morris
On Jun 13, 2017, at 19:10 , Glen Huang wrote: > > In the Core Data Xcode editor, I enabled optional for this attribute, but I > expect this method will prevent the object from being saved when the it's > location isn't set I don’t understand this. If you made the “location” attribute optional,

Re: How to validate Core Data attributes ? (example in official doc doesn't work)

2017-06-13 Thread Glen Huang
Thanks for quick reply. I guess i should provide the full context, sorry I was unclear. In my case, the location attribute is actually defined on a parent entity (let's call it Parent), and it has two child entity (Child1 and Child2), I want location to be optional for Child1 but not for Child2

Re: How to validate Core Data attributes ? (example in official doc doesn't work)

2017-06-13 Thread Quincey Morris
On Jun 13, 2017, at 23:32 , Glen Huang wrote: > > n my case, the location attribute is actually defined on a parent entity > (let's call it Parent), and it has two child entity (Child1 and Child2), I > want location to be optional for Child1 but not for Child2. So I made > location to be optio

Re: How to validate Core Data attributes ? (example in official doc doesn't work)

2017-06-13 Thread Glen Huang
You're the hero man! I totally forgot about the @objc case in swift 4. After prefixing it to my validation method, it works! And if you don't mind me asking, what do you use instead of Core Data? It's indeed not that friendly to swift (relationships being NSSet instead of Set etc). Also I don'