Re: Non-Resizable Window and Autolayout

2015-12-08 Thread Jerry Krinock
> On 2015 Dec 08, at 06:31, Dave wrote: > > I then select the Window in IB and select “Reset to Suggested Constraints”. also known as the “Ruin My Day” selection. > Does anyone have an idea why this is happening? It would be interesting to look at the window’s

Non-Resizable Window and Autolayout

2015-12-08 Thread Dave
Hi, I have a window that is NOT resizable, in IB I’ve set: Content Size: 400,300 Minimum Content Size: 400,300 Maximum Content Size: 400,300 and have also unchecked “Resize”. I then select the Window in IB and select “Reset to Suggested Constraints”. However when I run

Re: Non-Resizable Window and Autolayout

2015-12-08 Thread Roland King
> On 8 Dec 2015, at 23:06, Jerry Krinock wrote: > > >> On 2015 Dec 08, at 06:31, Dave wrote: >> >> I then select the Window in IB and select “Reset to Suggested Constraints”. > > also known as the “Ruin My Day” selection. I love that button - I

LSSharedFIleList API deprecated

2015-12-08 Thread Dragan Milić
This may not be the appropriate list to ask, but I couldn’t think of any better place… Now that (as of El Capitan) complete LSSharedFileList API is deprecated, which API is one supposed to use to retrieve list of items (in “favorites”, “recent documents”, “recent servers”, “login items” etc…)

WebView in a modal window

2015-12-08 Thread Konidaris Christos
Hi, I have a simple window with a WebView and an NSButton that I want to display as a modal window. The window is loaded from a NIB using MyCompanyAlertController, that also acts as the WebView's delegate (set in the NIB). When run as a sheet in my main window (using method showAlertInSheet:

Re: Adding minutes to display time

2015-12-08 Thread David Duncan
> On Dec 8, 2015, at 12:14 PM, Eric E. Dolecki wrote: > > Hey all, > > I am being supplied a time (not day specific). Say "7:30 AM" - as a string. > Could be PM. > > I need to make a slider with a range of 1 minute to 120 mins. Moving the > slider adjusts the 7:30 AM

Adding minutes to display time

2015-12-08 Thread Eric E. Dolecki
Hey all, I am being supplied a time (not day specific). Say "7:30 AM" - as a string. Could be PM. I need to make a slider with a range of 1 minute to 120 mins. Moving the slider adjusts the 7:30 AM display. So I am adding minutes to the display time. What's the best way to do this? I am using

Re: Adding minutes to display time

2015-12-08 Thread Eric E. Dolecki
Thank you everyone. I simplified the extension and now have it working properly using a formatter. extension NSDate { convenience init(dateString:String) { let dateStringFormatter = NSDateFormatter() dateStringFormatter.calendar = NSCalendar(calendarIdentifier:

Re: Adding minutes to display time

2015-12-08 Thread Eric E. Dolecki
I tried an extension I found. It's off by 5 hours... extension NSDate { convenience init(dateString:String) { let dateStringFormatter = NSDateFormatter() dateStringFormatter.calendar = NSCalendar(calendarIdentifier: NSCalendarIdentifierGregorian)

Re: Adding minutes to display time

2015-12-08 Thread Greg Parker
> On Dec 8, 2015, at 2:04 PM, Eric E. Dolecki wrote: > > I tried an extension I found. It's off by 5 hours... > > extension NSDate > { >convenience >init(dateString:String) { >let dateStringFormatter = NSDateFormatter() >dateStringFormatter.calendar

Re: Adding minutes to display time

2015-12-08 Thread David Duncan
> On Dec 8, 2015, at 2:04 PM, Eric E. Dolecki wrote: > > I tried an extension I found. It's off by 5 hours... > > extension NSDate > { > convenience > init(dateString:String) { > let dateStringFormatter = NSDateFormatter() >

Re: LSSharedFIleList API deprecated

2015-12-08 Thread Nivek Research
I opened a radar a while back and got this answer: "Shared file lists are no longer supported. There is no exact replacement API.” “If you want to manage your recent documents list, you should use NSDocumentController." “If you want to run a background tool independent of your main application,