Re: Updating an app's help

2011-12-14 Thread Bill Cheeseman
On Dec 13, 2011, at 5:17 PM, Graham Cox wrote: With each update of our app, we typically change the help book. We're finding that the system is very poor at recognising this and caches old versions of the help which causes new stuff we add to be unavailable. While I can manually trash the

KVO Setting a flag for any property change

2011-12-14 Thread Andre Masse
Hi, I have a superclass which has a modified BOOL property and a bunch of subclasses based on it. When any property is changed, I need to set this flag to YES. I can either write a setter for all properties and set this flag there, or observe all properties and set the flag in

Re: KVO Setting a flag for any property change

2011-12-14 Thread Keary Suska
On Dec 14, 2011, at 6:29 AM, Andre Masse wrote: I have a superclass which has a modified BOOL property and a bunch of subclasses based on it. When any property is changed, I need to set this flag to YES. I can either write a setter for all properties and set this flag there, or observe all

predicates and sort descriptors for NSFetchRequest - documentation is a bit vague

2011-12-14 Thread davelist
I have a fetch request with sort descriptors that was sorting on a many-one relationship (i.e., I'm fetching Entity A which has a relationship to one entity B and I was trying to get back the array of A entities sorted on an attribute of B). This doesn't work using sort descriptors; however,

Re: predicates and sort descriptors for NSFetchRequest - documentation is a bit vague

2011-12-14 Thread Keary Suska
On Dec 14, 2011, at 9:46 AM, davel...@mac.com wrote: I have a fetch request with sort descriptors that was sorting on a many-one relationship (i.e., I'm fetching Entity A which has a relationship to one entity B and I was trying to get back the array of A entities sorted on an attribute

Re: predicates and sort descriptors for NSFetchRequest - documentation is a bit vague

2011-12-14 Thread Dave Reed
On Dec 14, 2011, at 12:32 PM, Keary Suska wrote: On Dec 14, 2011, at 9:46 AM, davel...@mac.com wrote: I have a fetch request with sort descriptors that was sorting on a many-one relationship (i.e., I'm fetching Entity A which has a relationship to one entity B and I was trying to get

Re: predicates and sort descriptors for NSFetchRequest - documentation is a bit vague

2011-12-14 Thread Keary Suska
On Dec 14, 2011, at 11:07 AM, Dave Reed wrote: Here's my sorting scenario with a few more details. Entity A (the one I'm fetching) has a to-one relation to Entity B with attribute b. Let's call the relation tob so my sort descriptor said withKey:@tob.b and it results of the fetch request

NSTableView - how to dynamically change the height of the elements?

2011-12-14 Thread Nick
Hello I have a table view, that displays the elements in a table view, each row consists of an nsimagecell and an nstextfieldcell. I want to let the user choose whether he sees the items big or small in this list, i.e. whether each row is 40 px tall, or 15 px. I have implemented an NSTableView

Re: NSTableView - how to dynamically change the height of the elements?

2011-12-14 Thread Nick Zitzmann
On Dec 14, 2011, at 12:17 PM, Nick wrote: However, I am getting a weird behavior, the items are not displayed smaller or larger, instead they just overlap, the image cell is not being scaled normally. I suppose, instead of calling [tableView reloadData] i need to direct table view to

Re: NSTableView - how to dynamically change the height of the elements?

2011-12-14 Thread Nick
This is it. Thank you. 2011/12/14 Nick Zitzmann n...@chronosnet.com: On Dec 14, 2011, at 12:17 PM, Nick wrote: However, I am getting a weird behavior, the items are not displayed smaller or larger, instead they just overlap, the image cell is not being scaled normally. I suppose, instead

Re: predicates and sort descriptors for NSFetchRequest - documentation is a bit vague

2011-12-14 Thread David Reed
On Dec 14, 2011, at 2:05 PM, Keary Suska wrote: On Dec 14, 2011, at 11:07 AM, Dave Reed wrote: Here's my sorting scenario with a few more details. Entity A (the one I'm fetching) has a to-one relation to Entity B with attribute b. Let's call the relation tob so my sort descriptor said

the first mouseDown message of NSWindow

2011-12-14 Thread Torsten Curdt
I have a custom window that where I receive mouseDown messages. Now the first mouseDown is always lost because it just activates the window. Here is the relevant code: https://gist.github.com/0b3b010ad675a349ce72 So I was digging through the docs but I don't see a way around this.

Re: KVO Setting a flag for any property change

2011-12-14 Thread Andre Masse
Clever! Thanks for the suggestion. Andre Masse Keary Suska mailto:cocoa-...@esoteritech.com December 14, 2011 10:56 This kind of approach is probably best unless you can base your superclass on NSManagedObject, which does this automatically. But, as you find, there is some difficulty. I

Re: the first mouseDown message of NSWindow

2011-12-14 Thread MeldaProduction
I'm no expert here, but I think I had the opposite problem - I have a single custom NSView and it was really hard to get rid of the first mouse down message sometimes :). Maybe try the views. Vojtech 2011/12/14 Torsten Curdt tcu...@vafer.org I have a custom window that where I receive

Re: the first mouseDown message of NSWindow

2011-12-14 Thread Graham Cox
On 15/12/2011, at 9:13 AM, Torsten Curdt wrote: So I was digging through the docs but I don't see a way around this. [NSView acceptsFirstMouse:] --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: the first mouseDown message of NSWindow

2011-12-14 Thread Conrad Shultz
On 12/14/11 2:13 PM, Torsten Curdt wrote: I have a custom window that where I receive mouseDown messages. Now the first mouseDown is always lost because it just activates the window. Here is the relevant code: https://gist.github.com/0b3b010ad675a349ce72 So I was digging through the

Re: the first mouseDown message of NSWindow

2011-12-14 Thread Torsten Curdt
Awesome! Thanks guys. Now I do indeed get the event when I click on the content view. One problem still remains though - the subview of the content view is covering big portions of the content view. When I click on the subview I don't get the first mouseDown. Neither in the content view nor in

Determine sandbox/entitlements at runtime?

2011-12-14 Thread Eric Wing
For a Mac app, is there a way to determine if sandboxing is enabled in an app and which entitlements are set, all at runtime? I am writing a middleware framework where I don't know what the user is actually doing and they may not be able to change the compile options of my framework. If the app

Re: the first mouseDown message of NSWindow

2011-12-14 Thread Graham Cox
On 15/12/2011, at 9:13 AM, Torsten Curdt wrote: I have a custom window that where I receive mouseDown messages. You probably don't want to do that. A custom window is OK if your window needs a custom appearance, but any meaningful content (and event handling) should be done by a view placed

Re: the first mouseDown message of NSWindow

2011-12-14 Thread Conrad Shultz
On 12/14/11 3:39 PM, Torsten Curdt wrote: Awesome! Thanks guys. Now I do indeed get the event when I click on the content view. One problem still remains though - the subview of the content view is covering big portions of the content view. When I click on the subview I don't get the first

RE: NSTableView - how to dynamically change the height of the elements? (Nick)

2011-12-14 Thread Peter Hudson
I fixed a similar problem by specifically using NSImageCell . setImageScaling: You could also try setControlSize: Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: the first mouseDown message of NSWindow

2011-12-14 Thread Torsten Curdt
Any further suggestions? Works for me as described.  You can download my sample project for comparison at http://dl.dropbox.com/u/5847625/MouseDownTest.zip Thanks for the test project - works fine here, too. Now I need to figure our what's wrong in my (also simple) other project :-/ cheers,

Re: KVO Setting a flag for any property change

2011-12-14 Thread Keary Suska
On Dec 14, 2011, at 3:21 PM, Andre Masse wrote: Clever! Thanks for the suggestion. You probably figured this out but for prosperity there needs to be an observer of hasBeenModified, or the object itself can observe hasBeenModified and set the flag itself. Just a piece that might not be

Re: KVO Setting a flag for any property change

2011-12-14 Thread Andre Masse
Thanks for pointing this out. Andre Masse Keary Suska mailto:cocoa-...@esoteritech.com December 14, 2011 21:03 On Dec 14, 2011, at 3:21 PM, Andre Masse wrote: Clever! Thanks for the suggestion. You probably figured this out but for prosperity there needs to be an observer of