Re: Would you pay for a better table view?

2015-06-30 Thread Ben Kennedy
> On 30 Jun 2015, at 4:10 pm, Michael David Crawford > wrote: > > Cocoa Touch's table view works for simple things but it is painful for > anything fancy. Have you checked out UICollectionView, or as of this month, UIStackView? > Were I to write a better table view, would any of you fine folks

Re: UIPageViewController not resizing its child view controllers on rotation

2015-06-30 Thread Ben Kennedy
> On 30 Jun 2015, at 7:30 am, Devarshi Kulshreshtha > wrote: > > Though pagination control has resized properly, view of added view > controller has not resized properly. You haven't said so, but I presume that the UIPageControl belongs to your root view, and not pagesContainerViewController's

Re: Would you pay for a better table view?

2015-06-30 Thread Charles Srstka
On Jun 30, 2015, at 6:10 PM, Michael David Crawford wrote: > > My own app would benefit from a better table view were I to write one from > scratch. > > Cocoa Touch's table view works for simple things but it is painful for > anything fancy. > > Were I to write a better table view, would any o

Would you pay for a better table view?

2015-06-30 Thread Michael David Crawford
My own app would benefit from a better table view were I to write one from scratch. Cocoa Touch's table view works for simple things but it is painful for anything fancy. Were I to write a better table view, would any of you fine folks be into licensing it for your own apps? I once made what app

Re: Swift and parameter names

2015-06-30 Thread Quincey Morris
On Jun 30, 2015, at 15:10 , Charles Srstka wrote: > > This may be true for some cases, but I disagree with this particular example. Yes, you’re right. I simply zoned out when making up that name. I really meant something like ‘animateWithFrame’. However this example wasn’t to suggest anything

Re: Back-to-back NSOpenPanel runModal blocking each other

2015-06-30 Thread Charles Srstka
On Jun 30, 2015, at 2:55 PM, Sean McBride wrote: > > Hi all, > > Should I be able to display one NSOpenPanel after another using runModal? > > Basically, I have a loop where I prompt users to manually find files when > alias/bookmark resolution fails. I use the synchronous API runModal which

Re: Swift and parameter names

2015-06-30 Thread Charles Srstka
On Jun 30, 2015, at 4:46 PM, Quincey Morris wrote: > > 1. If the function/method being called has extremely well-known parameters, > then I think I’d prefer the function to have a form that omits the names. In > particular, CGRect, CGPoint and CGSize: > >> let rect = CGRect (x: 0, y: 0,

Re: Swift and parameter names

2015-06-30 Thread Quincey Morris
On Jun 29, 2015, at 15:42 , Rick Mann wrote: > > Here's an example (and this is what I frequently encounter) where requiring > parameter names adds nothing but clutter: > >let config = WKWebViewConfiguration() >self.webView = WKWebView(frame: self.webViewContainer.frame, > configuratio

Re: Back-to-back NSOpenPanel runModal blocking each other

2015-06-30 Thread Sean McBride
On Tue, 30 Jun 2015 20:50:06 +, Quincey Morris said: >On Jun 30, 2015, at 13:41 , Sean McBride wrote: >> >> Calling orderOut: myself (right after runModal) doesn't actually order >the window out either. :( > >Is this app sandboxed? No. >If so, I wouldn’t expect that to do anything, >since

Re: Back-to-back NSOpenPanel runModal blocking each other

2015-06-30 Thread Quincey Morris
On Jun 30, 2015, at 13:41 , Sean McBride wrote: > > Calling orderOut: myself (right after runModal) doesn't actually order the > window out either. :( Is this app sandboxed? If so, I wouldn’t expect that to do anything, since that’s not the window that’s onscreen. It’s in another process. > t

Re: Back-to-back NSOpenPanel runModal blocking each other

2015-06-30 Thread Sean McBride
On Tue, 30 Jun 2015 20:17:29 +, Quincey Morris said: >In the dialog APIs that have a completion handler, there’s a free >‘orderOut:’ after the handler returns, if it didn’t do that already. I’d >assume that this is is what’s internally causing the ‘orderOut:’ to >happen later than you wish, an

Re: Back-to-back NSOpenPanel runModal blocking each other

2015-06-30 Thread Quincey Morris
On Jun 30, 2015, at 12:55 , Sean McBride wrote: > > However, the panel itself doesn't always actually get visually removed from > the screen before my loop spins around again and displays another open panel. In the dialog APIs that have a completion handler, there’s a free ‘orderOut:’ after th

Back-to-back NSOpenPanel runModal blocking each other

2015-06-30 Thread Sean McBride
Hi all, Should I be able to display one NSOpenPanel after another using runModal? Basically, I have a loop where I prompt users to manually find files when alias/bookmark resolution fails. I use the synchronous API runModal which displays a modal NSOpenPanel and returns only when the user has

UITextFieldDelegate

2015-06-30 Thread David Grant
I want to become more familiar with best practices using this delegate, and when not to use it. Can anyone point me in the right direction? Tutorials, etc.? Thanks. Sent from my iPad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: File Permissions - NSFileManager Swift

2015-06-30 Thread Jens Alfke
> On Jun 30, 2015, at 6:26 AM, Arved von Brasch wrote: > > Thank you for replying. I was reporting the error I got back from the > NSError, which doesn’t give much detail. Every NSError has an error domain and code, which is what I was asking for. Often there’s other useful metadata in the u

Re: Window Update Problem

2015-06-30 Thread Britt Durbrow
I’m not an AppleScript expert (well, not anymore - I used to know quite a bit, but that was ages ago) so I can’t really tell you if you’re going wrong, but… can I ask a kinda’ basic question? It appears that you are trying to send an email… can you talk to the server directly, instead of going

Re: Cheating a synchronous call on the main thread

2015-06-30 Thread Jack Brindle
Well, actually not quite true. Pthreads has that mechanism with the join facility. I like pthreads (er.. did before I began to grok GCD), but personally have no use for pthread-join, and definitely don’t recommend its use, but it does exactly this - waits for another thread to exit before contin

NSTableView row heights with auto layout and bindings

2015-06-30 Thread Jonathan Guy
Hi Im trying to fix a problem with dynamic row heights with auto layout and bindings which was working fine in an older build of Xcode but which now no longer works. So my new attempt for the most part works but about 30% of my row heights are not correctly calculated. Basically I create a refer

Re: Cheating a synchronous call on the main thread

2015-06-30 Thread Dave
Hi, This code (or the basis of it) was actually given to me by a Cocoa developer from this list. > On 30 Jun 2015, at 15:19, Andreas Grosam wrote: > > This kind of approach doesn't make sense and introduces a lot of issues. It does make sense for certain kinds of problems and in the context i

UIPageViewController not resizing its child view controllers on rotation

2015-06-30 Thread Devarshi Kulshreshtha
I am trying to use UIPageViewController with view controllers added to it, problem is if I launch the app in portrait mode it appears perfectly like this: http://i.stack.imgur.com/ryT5d.png but if I rotate the device to landscape mode it appears like this: http://i.stack.imgur.com/GnuYH.png Tho

Window Update Problem

2015-06-30 Thread Dave
Hi, ***Cross posted as it relates to both technologies*** I’ve asked this question before, but no one seems to know the answer. I’ve been hacking around with this both in an AppleScript and from Objective-C using the Scripting Bridge as well as the AppleScriptObjC Bridge, but nothing I’ve tried

Re: Cheating a synchronous call on the main thread

2015-06-30 Thread Andreas Grosam
This kind of approach doesn't make sense and introduces a lot of issues. You occupy a thread which just waits for a result of a task (and thus merely blocks). You doesn't cancel the async task properly when a timeout occurs. And additionally you introduce a potential data race. You could avo

Re: Subclassing a Subclass of SBApplication

2015-06-30 Thread Dave
Hi and Thanks, yes a much better option. All the Best Dave > On 30 Jun 2015, at 14:19, Jean-Daniel Dupas wrote: > > Using class extension is probably a safe way to extends such classes. > > @interface SXPhotoshopApplication (MyExtension) > > - (void)myWrapper; > > @end > > >> Le 29 juin 201

Re: File Permissions - NSFileManager Swift

2015-06-30 Thread Arved von Brasch
> On 30 Jun 2015, at 02:29, Jens Alfke wrote: > > It always helps people answer questions if you post the exact error you get. > > Generally when there are mysteriously un-deletable files, it has something to > do with filesystem extended attributes like ‘immutable’. You can display > these by

Re: Subclassing a Subclass of SBApplication

2015-06-30 Thread Jean-Daniel Dupas
Using class extension is probably a safe way to extends such classes. @interface SXPhotoshopApplication (MyExtension) - (void)myWrapper; @end > Le 29 juin 2015 à 13:54, Dave a écrit : > > Hi, > > I’m using the Scripting Bridge, and I was wondering if it ok to subclass > SBXXX classes. Basi

Window Update Problem

2015-06-30 Thread Dave
Hi, ***Cross posted as it relates to both technologies*** I’ve asked this question before, but no one seems to know the answer. I’ve been hacking around with this both in an AppleScript and from Objective-C using the Scripting Bridge as well as the AppleScriptObjC Bridge, but nothing I’ve tried

Re: Cheating a synchronous call on the main thread

2015-06-30 Thread Dave
Hi, I do something like this which works really well but NOT on the Main Thread, on a background thread. -(NSData*) performSyncRequest { dispatch_group_tmyDispatchGroup; //** //**Create and Enter a Dispatch Group //** myDispatchGroup = dispa

Re: Simple Swift question

2015-06-30 Thread Kevin Meaney
Also the nifty new defer statement works well along with multiple guards if you need to do any cleanup when exiting the scope. The combination is great. Kevin > On 29 Jun 2015, at 23:43, Rick Mann wrote: > > >> On Jun 29, 2015, at 15:35 , Jens Alfke wrote: >> >> The unsightly nesting of the