UITableView's tableFooterView and autolayout

2014-06-11 Thread Torsten Curdt
So what's the story with tableFooterView and tableHeaderView and autolayout? I am trying to put a label into a footer. No problem if I give the label a frame but with the promise of autolayout this should not be necessary - I thought. I cannot really set any constraints referring to the super view

Re: document inexplicably becomes locked and fails to save under sandboxing

2014-06-11 Thread SevenBits
On Wed, Jun 11, 2014 at 1:18 AM, Martin Wierschin wrote: > Hello everyone, > > I'm sandboxing an NSDocument based application for OS X. In addition to > Apple's standard Open Recent menu, this app also provides the user a few > ways to reopen commonly used documents. To make that work under sandb

Re: UITableView's tableFooterView and autolayout

2014-06-11 Thread Sebastian Celis
Hi Torsten, On Jun 11, 2014, at 6:26 AM, Torsten Curdt wrote: > So what's the story with tableFooterView and tableHeaderView and > autolayout? I am trying to put a label into a footer. I have had luck with code like the following: - (void)viewDidLoad { [super viewDidLoad]; self.h

Re: UIKit and Swift

2014-06-11 Thread Jim Geist
On Jun 10, 2014, at 11:50 PM, Roland King wrote: > > On 11 Jun, 2014, at 2:12 pm, Kyle Sluder wrote: > >>> On Jun 10, 2014, at 10:57 PM, Jim Geist wrote: >>> >>> Anyone know off the top of their head how to import an Obj-C extension into >>> Swift? Specifically, I need the NSString extensio

Swift video/PDF files within the WWDC 2014 video list

2014-06-11 Thread Alex Zavatone
Here are the names of the videos on Swift from the WWDC 2014 section of Apple.com https://developer.apple.com/videos/wwdc/2014 402_hd_introduction_to_swift.mov 402_introduction_to_swift.pdf 403_hd_intermediate_swift.mov 403_intermediate_swift.pdf 406_hd_integrating_swift_with_objective_c.mov 406

Re: UITableView's tableFooterView and autolayout

2014-06-11 Thread Torsten Curdt
Thanks but there you are setting the frame yourself. The idea was to use constraints. Usually you would pin them to the superview. But in this case... I tried assigning the footer view and then assigning the constraints to the super view. It just did not yield the expected results. cheers, Torste

Re: UITableView's tableFooterView and autolayout

2014-06-11 Thread Sebastian Celis
On Jun 11, 2014, at 9:41 AM, Torsten Curdt wrote: > Thanks but there you are setting the frame yourself. The idea was to > use constraints. Usually you would pin them to the superview. But in > this case... My solution uses Auto Layout constraints to get the appropriate size for the header view

IKImageBrowserView - display thumbnails of adjacent pages close to each other

2014-06-11 Thread Nick
Hello I am trying to come up with a way to display pages of a book using IKImageBrowserView. The problem I have is that IKImageBrowserView does a good job displaying a collection of separate images, each image (cell) on equal distance from others cells. What I need to do, however, is make imagebro

NSDateFormatter timeStyle NSDateFormatterFullStyle for dates earlier than 1970?

2014-06-11 Thread Steve Mykytyn
NSDateFormatter (iOS) does not produce time zone names (or abbreviations) prior to January 1, 1970, instead shifting to the "GMT-08:00" style. Is this a bug or a feature? Judging from the tz database, it should be able to produce names prior to 1970 if I understand tz correctly. NSDateFormatter

Re: UITableView's tableFooterView and autolayout

2014-06-11 Thread Torsten Curdt
My question really isn't about positioning. Given that the tableview scrolls vertically the width should give the horizontal width constraint for the footer view. The height of the footer should come from the intrinsic size of the footer view. At least that's how I image it should work. Now the q

Re: UITableView's tableFooterView and autolayout

2014-06-11 Thread Luke Hiesterman
You have to set the frame yourself (before assigning to the tableView.tableFooterView) property. You can use autolayout and systemSizeFittingSize to get the appropriate size, but you have to apply it yourself. Luke On Jun 11, 2014, at 11:16 AM, Torsten Curdt wrote: > My question really isn't

Re: UITableView's tableFooterView and autolayout

2014-06-11 Thread Torsten Curdt
Meh. Then I hope for a huge number of radars because this makes it feel a little half baked - to put it nicely. Feels like a strange oversight given how Apple is pushing autolayout. Thanks for the responses guys. cheers, Torsten On Wed, Jun 11, 2014 at 8:23 PM, Luke Hiesterman wrote: > You have

Re: document inexplicably becomes locked and fails to save under sandboxing

2014-06-11 Thread Martin Wierschin
Thank you for your thoughts Mr. SevenBits! > What I believe your problem to be is what you are doing here is you are > getting access to your file, opening it, and then immediately revoking that > access with the subsequent stopAccessingSecurityScopedResource call. By the > time the document ha

Re: document inexplicably becomes locked and fails to save under sandboxing

2014-06-11 Thread Martin Wierschin
I need to do some more testing, but I may have a workaround for my problem. Instead of opening the document via NSDocumentController, ask NSWorkspace to open the file in my app instead: { NSURL* resolvedURL = XXDocumentURLResolvedFromBookmarkData(); [resolvedURL startAccessingSec

Re: Another app's UTI can break your app

2014-06-11 Thread Seth Willits
On Jun 10, 2014, at 8:22 PM, Uli Kusterer wrote: > On 10 Jun 2014, at 21:21, Seth Willits wrote: >> - (NSString *)typeForContentsOfURL:(NSURL *)url error:(NSError **)outError; >> { >> if ([url.pathExtension.lowercaseString isEqual:@"sql"]) { >> return @"my.uti.type"; >> }

Re: UIKit and Swift

2014-06-11 Thread Greg Parker
On Jun 11, 2014, at 7:29 AM, Jim Geist wrote: > On Jun 10, 2014, at 11:50 PM, Roland King wrote: >> On 11 Jun, 2014, at 2:12 pm, Kyle Sluder wrote: >>> On Jun 10, 2014, at 10:57 PM, Jim Geist wrote: Anyone know off the top of their head how to import an Obj-C extension into Swift? Sp

Re: Another app's UTI can break your app

2014-06-11 Thread Noah Desch
On Jun 10, 2014, at 3:21 PM, Seth Willits wrote: > My app and Coda both open plain text .sql files. Coda exports a UTI for the > .sql extension. So does my app. If .sql files are a public format that was defined by neither your app nor Coda, you should both be *importing* UTIs for it, instea

Re: IKImageBrowserCell

2014-06-11 Thread Daniel Luis dos Santos
I have been looking at NSCollectionView, and the ability to lazy load its elements. Some folks suggest using core data as the data source of an NSArrayController, that is connected to the NSCollectionView. But, does the collection view loads its items only when they become visible ? From what I

Text System Locks Up - Can't Find Reason

2014-06-11 Thread Seth Willits
I have two sample projects: one works fine, one does not. Both read a large (120 MB) file of text into an NSTextStorage, and then display that text storage in a text view. In the "Slow" project, the text view is created in IB and its text storage object is replaced. Scrolling all the way to th

Re: Text System Locks Up - Can't Find Reason

2014-06-11 Thread ChanMaxthon
I believe this involves Cocoa Bindings. I used to load lots of text into iOS app using Storyboards and it worked smoothly. Sent from my iPhone > On Jun 12, 2014, at 6:53, Seth Willits wrote: > > > I have two sample projects: one works fine, one does not. Both read a large > (120 MB) file of

Re: Text System Locks Up - Can't Find Reason

2014-06-11 Thread Seth Willits
On Jun 11, 2014, at 5:02 PM, ChanMaxthon wrote: > I believe this involves Cocoa Bindings. There are no bindings. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to th

Re: Text System Locks Up - Can't Find Reason

2014-06-11 Thread ChanMaxthon
Bindings or not, somebody is listening to the text view when created in xib. That makes some significant dispatching overhead. Sent from my iPhone > On Jun 12, 2014, at 8:08, Seth Willits wrote: > >> On Jun 11, 2014, at 5:02 PM, ChanMaxthon wrote: >> >> I believe this involves Cocoa Bindings

Re: Text System Locks Up - Can't Find Reason

2014-06-11 Thread Seth Willits
On Jun 11, 2014, at 5:11 PM, ChanMaxthon wrote: > Bindings or not, somebody is listening to the text view when created in xib. > That makes some significant dispatching overhead. There's no problem of "dispatching overhead" — the problem is the layout manager never stops laying out the text.

Re: Text System Locks Up - Can't Find Reason

2014-06-11 Thread Kyle Sluder
On Wed, Jun 11, 2014, at 05:11 PM, ChanMaxthon wrote: > Bindings or not, somebody is listening to the text view when created in > xib. That makes some significant dispatching overhead. Having run the app in the debugger, I'm pretty certain there is nothing going on with observers here. Look at the

Re: Text System Locks Up - Can't Find Reason

2014-06-11 Thread ChanMaxthon
Is editing involved? If not I would render it into HTML and let WebKit render it. Sent from my iPhone > On Jun 12, 2014, at 8:41, Seth Willits wrote: > >> On Jun 11, 2014, at 5:11 PM, ChanMaxthon wrote: >> >> Bindings or not, somebody is listening to the text view when created in xib. >> Th

Re: Text System Locks Up - Can't Find Reason

2014-06-11 Thread Seth Willits
On Jun 11, 2014, at 5:49 PM, ChanMaxthon wrote: > Is editing involved? If not I would render it into HTML and let WebKit render > it. This is not helpful at all. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Text System Locks Up - Can't Find Reason

2014-06-11 Thread Seth Willits
On Jun 11, 2014, at 5:42 PM, Kyle Sluder wrote: > Seth, did you notice that if you change backgroundLayoutEnabled and > allowsNonContiguousLayout to NO in -windowDidLoad, that the scrollbar > gets perpetually longer as you scroll? Very strange indeed. Yep. That's expected AFAIK. Since you've tol

Contextual menus in view-based NSOutlineView

2014-06-11 Thread Graham Cox
I'm having trouble getting contextual menus to work in a view-based NSOutlineView. I can set a menu on the whole outline view and that works, but I also need to have menus for each row. Setting a menu on the NSTableCellView subclass in IB doesn't work at all - it seems as if the menu isn't copi

Re: Contextual menus in view-based NSOutlineView

2014-06-11 Thread Lee Ann Rucker
In my cell-based table I created an empty menu whose delegate was the outlineView, then implemented menuNeedsUpdate:, and it didn't need to change for view-based. I think it came from Apple sample code originally, and is basically NSInteger clickedRow = [outlineView clickedRow]; if (clicked

Re: Contextual menus in view-based NSOutlineView

2014-06-11 Thread Graham Cox
This could be a good solution, I'll give it a shot - thanks. Still a bit annoying that the "obvious" way should be broken for no very good reason that I can see. --Graham On 12 Jun 2014, at 11:09 am, Lee Ann Rucker wrote: > In my cell-based table I created an empty menu whose delegate was

Re: Share and store RSA - public key in java server and vice versa

2014-06-11 Thread Devarshi Kulshreshtha
Because of all the problems I faced I finally decided to use a third party library - Chilkat Here is the link: http://www.chilkatsoft.com/crypt-objc.asp On Mon, May 19, 2014 at 10:56 PM, Jens Alfke wrote: > > On May 19, 2014, at 3:06 AM, Devarshi Kulshreshtha > wrote: > > 5. Used - wrapSymmetri

Debugging Swift

2014-06-11 Thread Cosmo
Is it just me, or is there something broken with debugging Swift in the Xcode 6 beta? I am running into problems like: local variables that are within scope not appearing in the debugger’s variables list; values for string variables not being displayed; no summary for the Quicklook view when try