Re: dispatch_apply strange results

2014-02-10 Thread Gerriet M. Denkmann
On 9 Feb 2014, at 15:53, Greg Parker wrote: > On Feb 9, 2014, at 12:19 AM, Gerriet M. Denkmann wrote: >> The real app (which I am trying to optimise) has actually two loops: one is >> counting, the other one is modifying. Which seems to be good news. >> >> But I would really like to understan

Re: Core Data : Synchronizing objects with SQLite file

2014-02-10 Thread Jerry Krinock
On 2014 Feb 10, at 12:01, Fritz Anderson wrote: > Am I correct that you routinely use your Core Data store as a straight SQLite > database? Not just peeking with a browser or the sqlite3 command line? Thank you, Fritz. No, generally I only peek into the SQLite file for troubleshooting. The

Re: NSTableView highlight row on mouseDown vs mouseUp

2014-02-10 Thread Kyle Sluder
On Feb 10, 2014, at 9:01 PM, Trygve Inda wrote: > > I have several NSTableViews in my windows. One of them only highlights a new > row on mouseUp, while the others highlight the clicked row on mouseDown. > > How can I fix the one table so that it too highlights on mouseDown? Yeesh, and here I a

NSTableView highlight row on mouseDown vs mouseUp

2014-02-10 Thread Trygve Inda
I have several NSTableViews in my windows. One of them only highlights a new row on mouseUp, while the others highlight the clicked row on mouseDown. How can I fix the one table so that it too highlights on mouseDown? Trygve ___ Cocoa-dev mailing li

Re: Import old Core Data Model?

2014-02-10 Thread Dave Fernandes
Perhaps there is an elegant way, but this also works: Make a new model in Xcode. Close the project. Open the packages of the old and new models in the Finder (Show Package Contents of the .xcdatamodel packages inside the .xcdatamodeld package). Copy the ‘contents’ file of the old package into the

Import old Core Data Model?

2014-02-10 Thread Rick Mann
I decided to write the newest version of an iOS app from scratch, copying and pasting big chunks of code from the old project. In the new app I added a copy of the old app's Core Data model, and proceeded to modify it. Unfortunately, I didn't first make a new version. I'd like to add the old mo

Re: EULA presentation requirements?

2014-02-10 Thread Graham Cox
On 11 Feb 2014, at 12:36 pm, SevenBits wrote: > This would mean that Apple is > breaking its own rules You must be new here! --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments t

Re: EULA presentation requirements?

2014-02-10 Thread Ken Thomases
On Feb 10, 2014, at 7:39 PM, Rick Mann wrote: > Ooops, sorry I wasn't clear. This is an iOS app (distributed through the App > Store). I can't find similar language in > > https://developer.apple.com/appstore/resources/approval/guidelines.html Those say: > • 10.1 Apps must comply with al

Re: EULA presentation requirements?

2014-02-10 Thread Rick Mann
Yeah, we found those. Thanks! On Feb 10, 2014, at 17:51 , Ken Thomases wrote: > On Feb 10, 2014, at 7:39 PM, Rick Mann wrote: > >> Ooops, sorry I wasn't clear. This is an iOS app (distributed through the App >> Store). I can't find similar language in >> >> https://developer.apple.com/ap

Re: EULA presentation requirements?

2014-02-10 Thread SevenBits
On Monday, February 10, 2014, Rick Mann wrote: > Ooops, sorry I wasn't clear. This is an iOS app (distributed through the > App Store). I can't find similar language in > > > https://developer.apple.com/appstore/resources/approval/guidelines.html Then I'd assume that you'll probably be okay, un

Re: EULA presentation requirements?

2014-02-10 Thread Rick Mann
Ooops, sorry I wasn't clear. This is an iOS app (distributed through the App Store). I can't find similar language in https://developer.apple.com/appstore/resources/approval/guidelines.html On Feb 10, 2014, at 17:27 , Ken Thomases wrote: > On Feb 10, 2014, at 7:09 PM, Rick Mann wrote:

Re: EULA presentation requirements?

2014-02-10 Thread SevenBits
On Monday, February 10, 2014, Ken Thomases wrote: > On Feb 10, 2014, at 7:09 PM, Rick Mann wrote: > > > Does anyone have any references for the need to present a custom EULA > when our app launches (after the user has downloaded it)? I know that Apple > and the App Store provide a mechanism for p

Re: EULA presentation requirements?

2014-02-10 Thread Rick Mann
Perfect, Ken, thank you! On Feb 10, 2014, at 17:27 , Ken Thomases wrote: > On Feb 10, 2014, at 7:09 PM, Rick Mann wrote: > >> Does anyone have any references for the need to present a custom EULA when >> our app launches (after the user has downloaded it)? I know that Apple and >> the App Sto

Re: EULA presentation requirements?

2014-02-10 Thread Ken Thomases
On Feb 10, 2014, at 7:09 PM, Rick Mann wrote: > Does anyone have any references for the need to present a custom EULA when > our app launches (after the user has downloaded it)? I know that Apple and > the App Store provide a mechanism for providing a custom EULA, but people in > my company are

Re: EULA presentation requirements?

2014-02-10 Thread SevenBits
On Monday, February 10, 2014, Rick Mann wrote: > Does anyone have any references for the need to present a custom EULA when > our app launches (after the user has downloaded it)? I know that Apple and > the App Store provide a mechanism for providing a custom EULA, but people > in my company are

EULA presentation requirements?

2014-02-10 Thread Rick Mann
Does anyone have any references for the need to present a custom EULA when our app launches (after the user has downloaded it)? I know that Apple and the App Store provide a mechanism for providing a custom EULA, but people in my company are considering requiring the user to agree to it when the

NSOutlineView view-based SourceView HeaderCell text is not white when selected

2014-02-10 Thread Lee Ann Rucker
I've just converted my SourceView-style NSOutlineView from cell to view based. I didn't change anything from what IB gives me. In the cell-based version (based on Apple's SourceView sample), the header cells would have white text when selected; in view-based, they're dark gray on blue, which is

Re: -hitTest:withEvent: called twice?

2014-02-10 Thread Luke Hiesterman
Yes, it’s normal. The system may tweak the point being hit tested between the calls. Since hitTest should be a pure function with no side-effects, this should be fine. Luke On Feb 10, 2014, at 2:50 PM, Rick Mann wrote: > I'm seeing -hitTest:withEvent: called twice for a single touch. The stac

-hitTest:withEvent: called twice?

2014-02-10 Thread Rick Mann
I'm seeing -hitTest:withEvent: called twice for a single touch. The stack is different between the two. Is it normal for a single view to be hit-tested twice? Thanks, -- Rick signature.asc Description: Message signed with OpenPGP using GPGMail _

Re: Core Data : Synchronizing objects with SQLite file

2014-02-10 Thread Fritz Anderson
On 7 Feb 2014, at 3:58 PM, Jerry Krinock wrote: > Executing an ‘update’ query with another program upon the SQLite file, I > changed a different attribute of the problem object. Upon re-executing the > fetch request in lldb, the problem object was now a fault. I then sent > [myObject foo], w

Re: Getting QuickLook to work with NSDocument

2014-02-10 Thread Fritz Anderson
On 8 Feb 2014, at 5:32 AM, Pax <45rpmli...@googlemail.com> wrote: > I'm trying to get QuickLook preview to work with NSDocument - much as in the > QuickLookDownloader example provided by Apple. > > I thought I had it all set up correctly - > > #import > > @interface Document : NSDocument QL

Re: makeDocumentForURL:nil withContentsOfURL:fileURL causing deletion

2014-02-10 Thread Kevin Perry
Using -makeDocumentForURL:nil withContentsOfURL:non-nil was originally designed around the idea of reopening a document that was autosaved into ~/Library/Autosave Information after crash recovery or via the post-Lion "Restore" feature. When such documents are closed without saving, it is desired

Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?

2014-02-10 Thread SevenBits
On Mon, Feb 10, 2014 at 12:52 PM, Mike Abdullah wrote: > > On 9 Feb 2014, at 15:43, David Delmonte wrote: > >> >> >> Begin forwarded message: >> >> From: David Delmonte >> Subject: Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa? >> Date: February 9, 2014 at 9:52:41 AM EST >> T

Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?

2014-02-10 Thread Mike Abdullah
On 9 Feb 2014, at 15:43, David Delmonte wrote: > > > Begin forwarded message: > > From: David Delmonte > Subject: Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa? > Date: February 9, 2014 at 9:52:41 AM EST > To: SevenBits > > Maybe I'm misunderstanding what I need to do.

Re: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak

2014-02-10 Thread Ken Thomases
On Feb 10, 2014, at 11:08 AM, Dany Golubitsky wrote: > To make it simple - here is the entire code: … Is this code being called on the main thread? On a background thread? Are you sure there's an autorelease pool in place and that it is being drained on a regular basis? Is anything logged to

RE: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak

2014-02-10 Thread Dany Golubitsky
Hello Ken! To make it simple - here is the entire code: NSSize textSize = [m_string sizeWithAttributes: m_attribs]; // Texture dimentions should be power of 2. However if the height is bigger than the width strange things gets drawn. NSSize frameSize = NSMakeSize(NextPo

Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?

2014-02-10 Thread Uli Kusterer
On 08 Feb 2014, at 16:39, David Delmonte wrote: > @Uli. My little solution actually works rather nicely (at least in Greek and > English). When the user enters a new password, it overwrites the asterisks > (I'll change them to bullets), and the user can see what he/she is writing. I > never und

Re: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak

2014-02-10 Thread Ken Thomases
On Feb 10, 2014, at 2:16 AM, Dany Golubitsky wrote: > Hello Ken and thanks for your answer! You're welcome. > 1) SBitmapImageRep is actually NSBitmapImageRep. N is just get lost in Copy. > Sorry. Ah, I should have figured. > 2) I tried both with release and without release of newContext. Same

Re: IKImageBrowserView, drawing on layers and retina display

2014-02-10 Thread Dragan Milić
Again replying to myself… On pon 10.02.2014., at 11.59, Dragan Milić wrote: > The remaining issue is that strings drawn on the layer (using standard string > drawing methods) still don't have antialiasing. This is also solved, perhaps it may help someone else to: https://developer.apple.com/l

Re: IKImageBrowserView, drawing on layers and retina display

2014-02-10 Thread Dragan Milić
Okay, replying to myself here… On pon 10.02.2014., at 10.30, Dragan Milić wrote: > I haven't done many things with CALayers in the past, so maybe I'm missing > some setting to make this work, but it doesn't look like that looking at that > class' public API. On the other hand I find it hard to

IKImageBrowserView, drawing on layers and retina display

2014-02-10 Thread Dragan Milić
I'm trying to use IKImageBrowser class for something which is supposed to resemble Finder's icon view appearance. Hence, I need quite customized item titles, e.g. multiline string, oval gradient background (like Finder's label indicators), etc. Customizing item's title frame and views title (set

RE: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak

2014-02-10 Thread Dany Golubitsky
Hello Ken and thanks for your answer! 1) SBitmapImageRep is actually NSBitmapImageRep. N is just get lost in Copy. Sorry. 2) I tried both with release and without release of newContext. Same effect. 3) I am sorry for misguide a little. The drawing is not entirely with openGL. The simple story is