Re: Core Data : Managed Object Models : Configurations, Versions

2010-06-16 Thread Jack Nutting
I can't answer all your questions off the top of my head, but: On Wed, Jun 16, 2010 at 12:40 AM, Jerry Krinock wrote: > Apparently it is common to "merge" managed object models.  When is this done? > > My app's bundle contains three managed object models, but they are for > versioning; a current

Re: Service without Icon or Window?

2010-06-16 Thread Lightning Duck
Thanks, all, for the advice and the pointers Take care, Jay On Jun 15, 2010, at 5:05 PM, Peter Ammon wrote: > > On Jun 15, 2010, at 2:56 PM, Lightning Duck wrote: > >> I need to make an application that runs a bit as a 'service' if you will. >> Not in the sense of running from the "Service

Problem using NSGradient with dataWithPDFInsideRect

2010-06-16 Thread Gideon King
Hi all, I have a view which uses an NSGradient to display part of the view. It displays correctly on screen, but when I use dataWithPDFInsideRect, the PDF doesn't show the gradient correctly. It appears that it doesn't honor the opacity settings of the colors and instead uses solid colors. Is

Re: Problem using NSGradient with dataWithPDFInsideRect

2010-06-16 Thread Graham Cox
On 17/06/2010, at 12:12 AM, Gideon King wrote: > It appears that it doesn't honor the opacity settings of the colors and > instead uses solid colors. > > Is this a known issue? Is there some workaround for this? PDF doesn't support gradients with transparency. This sucks majorly actually, as

Re: Where to noteHeightOfRowsWithIndexesChanged

2010-06-16 Thread Tony P
Thanks for all the responses folks. On 15 Jun 2010, at 7:22 pm, Corbin Dunn wrote: Do the height calculations in the bounds change, and then call the "noteHeight.." method all in the same run loop stack; that will probably fix your problem. Beautiful, works like a dream. Many, many thanks

Re: Core Data : Managed Object Models : Configurations, Versions

2010-06-16 Thread Jerry Krinock
On 2010 Jun 16, at 02:54, Jack Nutting wrote: > You asked when the merging is done: That's the spot! The > mergedModelFromBundles: method creates a big combined model out of all > the models your app contains. Thank you, Jack. OK, I didn't write that very well. Let me ask it this way: Whereas

Re: Where to noteHeightOfRowsWithIndexesChanged

2010-06-16 Thread Kyle Sluder
On Jun 16, 2010, at 8:17 AM, Tony P wrote: > Thanks for all the responses folks. > > On 15 Jun 2010, at 7:22 pm, Corbin Dunn wrote: > >> Do the height calculations in the bounds change, and then call the >> "noteHeight.." method all in the same run loop stack; that will probably fix >> your p

Re: Core Data : Managed Object Models : Configurations, Versions

2010-06-16 Thread Kyle Sluder
On Jun 16, 2010, at 8:59 AM, Jerry Krinock wrote: > Then: Why do we have four methods for merging models? Why would a developer > want models to be merged at runtime? Frameworks, for one. --Kyle Sluder___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: Where to noteHeightOfRowsWithIndexesChanged

2010-06-16 Thread Tony Romano
You can't be cavalier about the UI. The Windows version of the application could be in an enterprise setting where lots of users are already accustom to how it works today. Good or bad, consistency outweighs uniqueness. Changing something on an enterprise scale needs to go through a methodica

Re: Problem using NSGradient with dataWithPDFInsideRect

2010-06-16 Thread Gideon King
Thanks, using an image worked. I hope they move to supporting translucent gradients soon. Gideon On 17/06/2010, at 12:33 AM, Graham Cox wrote: > > PDF doesn't support gradients with transparency. > > This sucks majorly actually, as it makes true WYSIWYG impossible. > > A workaround might be t

Why does NSCollectionView want to encode items in PopUp Menu?

2010-06-16 Thread Jerry Krinock
I've just used an NSCollectionView for the first time, following the instructions in "Quick Start for Collection Views". The array controller's content is an array of Foo managed objects, which have a relationship to Bar managed objects. When I got down to the subviews, I wanted a popup menu.

Re: Why does NSCollectionView want to encode items in PopUp Menu?

2010-06-16 Thread Graham Cox
On 17/06/2010, at 9:20 AM, Jerry Krinock wrote: > Why might the collection view feel it needs to encode the items in this popup > menu? Isn't the view template copied by archiving/dearchiving, since NSView doesn't support NSCopying? A similar problem I've run into is that when you set -repre

(no subject)

2010-06-16 Thread Brad Peterson
http://bit.ly/bH7V0j ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscri

Re: Core Data : Managed Object Models : Configurations, Versions

2010-06-16 Thread Dave Fernandes
Here's a scenario I have been wondering about for a while (and I suspect the answer is "don't do that" - but I'd like to know if it's possible)... Let's say I have an app with data model X, and a plugin with data model Y. So the app with the plugin installed has data model X+Y. Now let's say thi

Add button to Finder

2010-06-16 Thread koko
I have a SVN Client that adds a button to the Finder's windows. clicking the button pops up menu of SVN actions. Is this considered good form? I would like to do something similar, a button with a pop up menu. Good form? Advice please. -koko _

Re: Add button to Finder

2010-06-16 Thread Alexander Heinz
It sounds to me like this would be better suited to an item in the Services menu: http://developer.apple.com/mac/library/documentation/cocoa/conceptual/SysServices/introduction.html - Alex On Jun 16, 2010, at 9:03 PM, k...@highrolls.net wrote: > I have a SVN Client that adds a button to the Fi

Re: Why does NSCollectionView want to encode items in PopUp Menu?

2010-06-16 Thread Jerry Krinock
On 2010 Jun 16, at 17:03, Graham Cox wrote: > On 17/06/2010, at 9:20 AM, Jerry Krinock wrote: > >> Why might the collection view feel it needs to encode the items in this >> popup menu? > > Isn't the view template copied by archiving/dearchiving, since NSView doesn't > support NSCopying? Hmm

DnD International No symbol

2010-06-16 Thread Tony Romano
Briefly, in a DnD operation all the nodes selected need to be siblings of each other. During validateDrop I check for this and it calculates it just fine. However, I need to set the DnD image to something indicating this is not allowed, I thought using the International NO symbol made sense bu

Re: DnD International No symbol

2010-06-16 Thread Kyle Sluder
On Wed, Jun 16, 2010 at 6:55 PM, Tony Romano wrote: > Briefly, in a DnD operation all the nodes selected need to be siblings of > each other.  During validateDrop I check for this and it calculates it just > fine.  However, I need to set the DnD image to something indicating this is > not allow

Re: DnD International No symbol

2010-06-16 Thread Tony Romano
Hmm... I'm returning the NSDragOperationNone now, all I get is an image of what is being dragged no other symbol and the outlineview won't accept the drop which is correct. When I have a valid selection, I get the other symbol for copy(green circle with plus sign), or for Move, the outlineview

Re: DnD International No symbol

2010-06-16 Thread Kyle Sluder
On Wed, Jun 16, 2010 at 7:19 PM, Tony Romano wrote: > Hmm...  I'm returning the NSDragOperationNone now, all I get is an image of > what is being dragged no other symbol and the outlineview won't accept the > drop which is correct.  When I have a valid selection, I get the other symbol > for co

Re: Core Data : Managed Object Models : Configurations, Versions

2010-06-16 Thread Jerry Krinock
On 2010 Jun 16, at 17:59, Dave Fernandes wrote: > Let's say I have an app with data model X, and a plugin with data model Y. So > the app with the plugin installed has data model X+Y. Now let's say this app > + plugin is used to create a document. The questions is: If this document is > opened

Re: Add button to Finder

2010-06-16 Thread Uli Kusterer
On 16.06.2010, at 18:03, k...@highrolls.net wrote: > I have a SVN Client that adds a button to the Finder's windows. clicking the > button pops up menu of SVN actions. > > Is this considered good form? There is no official API to add such buttons to Finder, so whatever this SVN client does is

Always Notified when Key is Released

2010-06-16 Thread Richard Somers
I have a custom view which implements 'keyUp:'. In my custom view when the delete key is released there is some work that needs to be done. The work is done in the 'keyUp:' method. The problem is that if the user presses the delete key, then inadvertently presses a modifier key, then releas

Re: DnD International No symbol

2010-06-16 Thread John Joyce
The common behavior is that it will not drop and will (very quickly) snap back to origin. On Jun 16, 2010, at 9:19 PM, Tony Romano wrote: > Hmm... I'm returning the NSDragOperationNone now, all I get is an image of > what is being dragged no other symbol and the outlineview won't accept the >

Re: Add button to Finder

2010-06-16 Thread John Joyce
There is nothing wrong with a popup button. You probably should *not* add buttons to other applications if there is not an API provided to do so for that application. You definitely should never do so without making it an opt-in situation for the user before adding a button to another applicatio