Re: KVC Validation w/ custom Formatter not working

2017-03-03 Thread Luc Van Bogaert
d, which I guess is by design. On the contrary, when the formatter decides the input is valid, my validation method indeed gets called. Thanks for your suggestion on using a custom validation method. -- Luc Van Bogaert Follow my Blog @ http://folkwire.wordpress.com > On 27 Feb 2017, at 22:58, Q

KVC Validation w/ custom Formatter not working

2017-02-26 Thread Luc Van Bogaert
y help with this would be greatly appreciated. -- Luc Van Bogaert ___ 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/Unsub

Re: Validating NSButton in Swift

2015-12-14 Thread Luc Van Bogaert
> On 14 Dec 2015, at 22:51, Roland King <r...@rols.org> wrote: > > >> On 15 Dec 2015, at 04:10, Luc Van Bogaert <luc.van.boga...@me.com >> <mailto:luc.van.boga...@me.com>> wrote: >>> >> >> >> I tried what you sugg

Re: Validating NSButton in Swift

2015-12-14 Thread Luc Van Bogaert
ject is correctly tagged in swift as already conforming. > I don’t see another way to do it. I tried what you suggested and made a button subclass and just declared conformance in objective-c, and then imported the class into Swift. This seems to do the trick, my button subclass is now a

Validating NSButton in Swift

2015-12-13 Thread Luc Van Bogaert
my subclass to implement two methods: action() and tag(). The compiler complains about the selectors being identical to the 'action' and 'tag' selectors in superclass NSControl. Is there a way to solve this? -- Luc Van Bogaert ___ Cocoa-dev mailing

Re: TableviewSelectionDidChange(_:) not called

2015-12-01 Thread Luc Van Bogaert
> On 30 Nov 2015, at 22:57, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Nov 30, 2015, at 12:18 , Luc Van Bogaert <luc.van.boga...@me.com> wrote: >> >> I can see this is being called when I make any selection change; except when

TableviewSelectionDidChange(_:) not called

2015-11-30 Thread Luc Van Bogaert
the slection, or doesn't it? If this behaviour I'm seeing is indeed as intended; I'm wondering what other approach I should take to handle selection changes. Maybe observing the array controller's selectionIndexes or something else? Thanks, -- Luc Van Bogaert

Re: TableviewSelectionDidChange(_:) not called

2015-11-30 Thread Luc Van Bogaert
> On 30 Nov 2015, at 20:28, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Nov 30, 2015, at 11:07 , Luc Van Bogaert <luc.van.boga...@me.com > <mailto:luc.van.boga...@me.com>> wrote: >> >> I have noticed that Tablev

Re: Trouble w/ key-value binding validation

2015-11-07 Thread Luc Van Bogaert
> On 07 Nov 2015, at 01:56, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Nov 6, 2015, at 15:23 , Luc Van Bogaert <luc.van.boga...@me.com > <mailto:luc.van.boga...@me.com>> wrote: >> >> In a tableview with a content binding a

Re: Trouble w/ key-value binding validation

2015-11-07 Thread Luc Van Bogaert
> On 07 Nov 2015, at 10:09, Luc Van Bogaert <luc.van.boga...@me.com> wrote: > >> On 07 Nov 2015, at 01:56, Quincey Morris >> <quinceymor...@rivergatesoftware.com >> <mailto:quinceymor...@rivergatesoftware.com>> wrote: >> >> On Nov 6, 20

Trouble w/ key-value binding validation

2015-11-06 Thread Luc Van Bogaert
(_ :) throws), for each of the properties, but the validation method only seems to get called for scallar types and not for eg. String types. I've made sure I checked "Validates immediately" in the binding attributes. Any ideas about what I may be doing wrong? -- Luc V

Request for guidance re. CALayer

2015-01-07 Thread Luc Van Bogaert
this method should be called. Thanks for any help, -- Luc Van Bogaert smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: NSTableView with reversed rows?

2014-10-03 Thread Luc Van Bogaert
' upwards. -- Luc Van Bogaert DotSketcher - www.rixhon.be Op 03 Oct 2014 om 03:15 heeft Graham Cox graham@bigpond.com het volgende geschreven: On 3 Oct 2014, at 7:13 am, Luc Van Bogaert luc.van.boga...@me.com wrote: I want the table to populate 'from the bottom to the top', so

NSTableView with reversed rows?

2014-10-02 Thread Luc Van Bogaert
but that didn't seem to make any difference. I didn't think it would be that easy anyway, but I have no idea where to start... Thanks, -- Luc Van Bogaert smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev

Re: NSTableView with reversed rows?

2014-10-02 Thread Luc Van Bogaert
what I 'm looking for. -- Luc Van Bogaert Op 02 Oct 2014 om 23:06 heeft Jonathan Hull jh...@gbis.com het volgende geschreven: Have you considered just inverting the data source? Thanks, Jon On Oct 2, 2014, at 12:45 PM, Luc Van Bogaert luc.van.boga...@me.com wrote: Hi, I

Re: Disable document save alert when closing inspector panel

2014-09-14 Thread Luc Van Bogaert
On 13 Sep 2014, at 00:11, Luc Van Bogaert luc.van.boga...@me.com wrote: Op 12 Sep 2014 om 23:40 heeft Quincey Morris quinceymor...@rivergatesoftware.com het volgende geschreven: On Sep 12, 2014, at 13:57 , Luc Van Bogaert luc.van.boga...@me.com wrote: When I try to close the inspector

Disable document save alert when closing inspector panel

2014-09-12 Thread Luc Van Bogaert
Hi, When I try to close the inspector panel in my document base application, I'm getting the default alert message to save the document if it has unsaved edits. Is there a way to disable this behaviour when closing an inspector panel? Thanks. -- Luc Van Bogaert smime.p7s Description: S

Re: Disable document save alert when closing inspector panel

2014-09-12 Thread Luc Van Bogaert
Op 12 Sep 2014 om 23:40 heeft Quincey Morris quinceymor...@rivergatesoftware.com het volgende geschreven: On Sep 12, 2014, at 13:57 , Luc Van Bogaert luc.van.boga...@me.com wrote: When I try to close the inspector panel in my document base application, I'm getting the default alert

Re: How to copy Color Panel behaviour?

2014-09-10 Thread Luc Van Bogaert
On 10 Sep 2014, at 01:56, Kyle Sluder k...@ksluder.com wrote: On Tue, Sep 9, 2014, at 06:42 PM, Graham Cox wrote: On 10 Sep 2014, at 7:13 am, Luc Van Bogaert luc.van.boga...@me.com wrote: This opens the panel without making it key, which is OK, but it still makes the panel key when I

Re: How to copy Color Panel behaviour?

2014-09-10 Thread Luc Van Bogaert
On 10 Sep 2014, at 23:32, Ken Thomases k...@codeweavers.com wrote: On Sep 10, 2014, at 4:07 PM, Luc Van Bogaert luc.van.boga...@me.com wrote: No succes so far with this. I subclassed NSPanel and overridden: - (BOOL) becomesKeyOnlyIfNeeded { return YES; } - (BOOL

How to copy Color Panel behaviour?

2014-09-09 Thread Luc Van Bogaert
, which is OK, but it still makes the panel key when I click any of the responder objects in the panel, such as a collectionview... Thanks for any help. -- Luc Van Bogaert smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list

Autolayout problem sets frame size to zero

2014-09-04 Thread Luc Van Bogaert
upon startup, but that wouldn't be the best solution I guess, and it doesn't explain the observer behaviour. Any advice would be appreciated. Thanks -- Luc Van Bogaert smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list

Re: Compositing grid over custom view

2014-09-03 Thread Luc Van Bogaert
Thanks, I've read the docs on Quartz and blend modes and found a working solution. -- Luc Van Bogaert On 02 Sep 2014, at 01:19, edward taffel etaf...@me.com wrote: you may wish to investigate the quartz blend modes, e.g. kCGBlendModeDifference might work for you. On Sep 1, 2014, at 3

Compositing grid over custom view

2014-09-01 Thread Luc Van Bogaert
possible using the standard cocoa drawing features, or will I need OpenGL or some other graphics library? Thanks -- Luc Van Bogaert smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Problem resizing Layer-backed view with subview

2014-08-27 Thread Luc Van Bogaert
experience with view hierarchy, so I'm hoping someone could jump in with some advise. Thank you, -- Luc Van Bogaert smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

null value in KVO change dictionary ?

2014-08-22 Thread Luc Van Bogaert
dictionary are always 'null', even though I can get a hold of the selected object using '[object selectedObjects]'. So why is this object not in the change dictionary? Thanks for any help. -- Luc Van Bogaert smime.p7s Description: S/MIME cryptographic signature

Re: A matrix of NSColorWells?

2014-08-21 Thread Luc Van Bogaert
Hello, I've used NSCollectionView for this purpose, albeit for a smaller nummer of colorwells. -- Luc Van Bogaert Op 21 Aug 2014 om 18:56 heeft C.W. Betts computer...@hotmail.com het volgende geschreven: Is there a way to create multiple color wells in a way similar to how NSMatrix

Re: Advise on referencing NSDocument from custom view

2014-08-13 Thread Luc Van Bogaert
and remove the custom view as an observer from MyWindowController, which seems to work fine, but I'm still not sure why I can't do this in the MyView object itself. -- Luc Van Bogaert On 10 Aug 2014, at 23:05, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Aug 10, 2014, at 13:16 , Luc

Advise on referencing NSDocument from custom view

2014-08-10 Thread Luc Van Bogaert
windowDidLoad: method, but I'm not sure if this is a good approach to take. Any advise on this? Thank you, -- Luc Van Bogaert smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Advise on referencing NSDocument from custom view

2014-08-10 Thread Luc Van Bogaert
On 10 Aug 2014, at 19:15, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Aug 10, 2014, at 09:01 , Luc Van Bogaert luc.van.boga...@me.com wrote: I was thinking of using a weak property for my custom view to reference the document and set this property from the same

Observing NSArrayController selection property

2014-07-07 Thread Luc Van Bogaert
: to the controller. The same happens when observing other keypaths like selectedObjects or selectedObjects.count. As a result I'm redrawing my custom view time many times when it's not required. Is there a way to avoid this? Thank you, -- Luc Van Bogaert smime.p7s Description: S/MIME

Model object with NSImage property in ZIP file

2012-12-26 Thread Luc Van Bogaert
works as expected, with just one problem: after downloading, decompressing the archive and loading the document into my app, all the pages seem to have lost their icon. -- Luc Van Bogaert ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Checking document structure in NSDocument based app

2012-11-27 Thread Luc Van Bogaert
addDocument: so I could check against the document version before allowing the app to actually open it. Any advice on how to do this would be greatly appreciated. Thanks, -- Luc Van Bogaert ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Display alert sheet when application is not active

2012-11-12 Thread Luc Van Bogaert
On 11 Nov 2012, at 19:03, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Nov 11, 2012, at 04:09 , Luc Van Bogaert luc.van.boga...@me.com wrote: However, when my application is not active when the file is dropped, the message to the windowcontroller is never sent. Here's

Display alert sheet when application is not active

2012-11-11 Thread Luc Van Bogaert
from the user like this. Any help would be appreciated. -- Luc Van Bogaert ___ 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

Translating resource files

2012-11-09 Thread Luc Van Bogaert
including various localisations. So, this got me wondering where these developers turn for help. Again, sorry if this post is off-topic. Please consider it as a general inquiry about technical translation work. Thanks, -- Luc Van Bogaert ___ Cocoa-dev

Re: Binding alignment property of NSTextField

2012-10-28 Thread Luc Van Bogaert
2012, at 16:06, Luc Van Bogaert luc.van.boga...@me.com wrote: Yes, I'm using a synthesised setter to change the property value. I am also observing the property (to redraw the controller's view whenever something changes) and this way I can confirm that the property is indeed changed in a KVO

Binding alignment property of NSTextField

2012-10-27 Thread Luc Van Bogaert
property of an existing viewcontroller object to some other value, the textfield alignment is not adjusted accordingly. -- Luc Van Bogaert ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Binding alignment property of NSTextField

2012-10-27 Thread Luc Van Bogaert
using a NSValueTransformer with the binding to translate the enum property values to the proper alignment setting for the textfield. On 27 Oct 2012, at 11:58, Ken Thomases k...@codeweavers.com wrote: On Oct 27, 2012, at 4:26 AM, Luc Van Bogaert wrote: The textfield alignment is bound

Localising dynamic string resources in code

2012-10-10 Thread Luc Van Bogaert
. All the other string recources in my code get translated correctly. Could anyone please help me find out what it is I'm missing here? Many thanks, -- Luc Van Bogaert ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Localising dynamic string resources in code

2012-10-10 Thread Luc Van Bogaert
On 10 Oct 2012, at 11:45, Ken Thomases k...@codeweavers.com wrote: On Oct 10, 2012, at 4:25 AM, Luc Van Bogaert wrote: I'm in the process of localising my application, and I'm having a problem getting some of the string resources in my code localised. In several places in my code, I'm

Detecting when document window is actually displayed

2012-06-09 Thread Luc Van Bogaert
in the sheet being displayed separately instead of on the window. I've also checked NSWindowDelegate methods for something usable but so far without success. What would be the preferred place to display the modal sheet? Thanks, -- Luc Van Bogaert

Tool for creating application icon

2012-06-07 Thread Luc Van Bogaert
a 512x512 pixel icns icon for my app to use if I ever succeed of getting it on the App Store. I was also thinking of having a custom icon for my application made by a graphics designer, so any recommendations about this would be helpful as well. Thanks, -- Luc Van Bogaert

Observing frame change of a subview

2012-04-15 Thread Luc Van Bogaert
be appreciated. -- Luc Van Bogaert ___ 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

Re: Undomanager for custom object?

2012-03-15 Thread Luc Van Bogaert
On 14 Mar 2012, at 20:12, Seth Willits wrote: On Mar 14, 2012, at 3:26 AM, Luc Van Bogaert wrote: I would like to implement undo/redo for a model object which in turn is also a ivar backed property of a document object. I'm already using the document's undo manager to undo/redo setting

Re: Undomanager for custom object?

2012-03-14 Thread Luc Van Bogaert
On 13 Mar 2012, at 22:07, Kyle Sluder wrote: On Mar 13, 2012, at 1:49 PM, Luc Van Bogaert wrote: Hi, In my document-based app, I am using NSDocument's NSUndoManager to implement undo/redo. As part of my document objects, I have to deal with a custom object, for which I would also

Undomanager for custom object?

2012-03-13 Thread Luc Van Bogaert
this for a custom object? Thanks, -- Luc Van Bogaert ___ 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

Re: Animated NSSplitView headache

2012-02-12 Thread Luc Van Bogaert
with this! PS: as it turns out, there doesn't seem to be a need to temporarily disable my split view delegate during animation. It all comes down to correctly disabling and re-enabling autoresize, but the latter *after* the animation has completely finished. -- Luc Van Bogaert

Animated NSSplitView headache

2012-02-10 Thread Luc Van Bogaert
behaviour back to their original values. Again, this all works if the subviews were not first collapsed by dragging the divider. -- Luc Van Bogaert. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Animating NSSplitView collapse/uncollapse

2012-02-07 Thread Luc Van Bogaert
On 06 Feb 2012, at 09:29, Martin Hewitson wrote: Hi Luc, Attached is a split view controller which I think does what you want, or at least should enough to go on. This is cobbled together from various examples I found on the web. The code is experimental and probably needs some cleaning

Animating NSSplitView collapse/uncollapse

2012-02-05 Thread Luc Van Bogaert
, but when I uncollapse a subview, the views contents are only drawn partially, similar to the effect one sees when the splitview delegate does not implement the methods to constrain the subview size. Any ideas? Thanks -- Luc Van Bogaert

Drag and drop in collectionview

2012-01-28 Thread Luc Van Bogaert
on this -- Luc Van Bogaert ___ 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

Re: Drag and drop in collectionview

2012-01-28 Thread Luc Van Bogaert
to generate something like this? -- Luc Van Bogaert ___ 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

NSUndoManager w/ Document based app

2012-01-25 Thread Luc Van Bogaert
Van Bogaert ___ 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 Subscription: https

Where to implement alert ?

2012-01-24 Thread Luc Van Bogaert
the NSAlert at the 'higher' or at the 'lower' level, if it matters at all? Thanks for any advice. -- Luc Van Bogaert ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: How to update preview in NSPrintPanel?

2011-12-30 Thread Luc Van Bogaert
On 26 Dec 2011, at 02:44, Quincey Morris wrote: On Dec 25, 2011, at 14:05 , Luc Van Bogaert wrote: I'm adding a custom user setting to a NSPrintPanel by adding an accessory view controller for a view that contains just one control (a checkbox) and which is loaded from a nib file

How to update preview in NSPrintPanel?

2011-12-25 Thread Luc Van Bogaert
Van Bogaert ___ 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 Subscription: http

Question about selection in a NSCollectionView

2011-11-16 Thread Luc Van Bogaert
of the nscollectionview, will again trigger the observing viewcontroller, etc. Does anyone have some suggestions about how to solve this in an elegant way? Thanks, -- Luc Van Bogaert ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Document-based app: design question

2011-10-21 Thread Luc Van Bogaert
in several different classes, I need to put it someplace where I can easily reference it. AppDelegate comes to mind. So, I'm wondering if putting this code in a public method in the application delegate would be the correct cocoa way of doing things? Thanks for any advice. -- Luc Van Bogaert

Re: Select model objects with NSTableView using cocoa bindings

2011-10-14 Thread Luc Van Bogaert
On 14 Oct 2011, at 00:21, Quincey Morris wrote: On Oct 13, 2011, at 13:44 , Luc Van Bogaert wrote: Use a NSIndexSet property instead of a NSMutableIndexSet, and change the property by assigning it a new (immutable) index set -- that is, via the setter. This works! Thanks for your help

Re: Select model objects with NSTableView using cocoa bindings

2011-10-13 Thread Luc Van Bogaert
On 12 Oct 2011, at 23:22, Quincey Morris wrote: On Oct 12, 2011, at 13:31 , Luc Van Bogaert wrote: I'm wondering if I should create a NSIndexSet property in my model object and bind it to the NSArrayController's 'selectedIndexes' key? Yes, but you've got the terminology wrong

Select model objects with NSTableView using cocoa bindings

2011-10-12 Thread Luc Van Bogaert
themselves once their 'selected' property has been changed... I hope all this is making some sense to someone on this list and I apologize for not being able to explain my problem more clearly. Thanks for any suggestions. -- Luc Van Bogaert ___ Cocoa

Re: Set a view's delegate using IB

2011-09-07 Thread Luc Van Bogaert
On 06 Sep 2011, at 21:51, Quincey Morris wrote: On Sep 6, 2011, at 12:20 , Luc Van Bogaert wrote: I've been struggling trying to set a viewcontroller (loaded by its own nib) as the delegate of another (main) viewcontroller's view in IB, while at the same time avoiding 'awakefromnib

Set a view's delegate using IB

2011-09-06 Thread Luc Van Bogaert
viewcontroller's nib. I haven't succeeded so far, so I finally decided to use code. But, I'm still wondering if this is at all possible using IB. Any ideas? Thanks, -- Luc Van Bogaert ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Animated Split View

2011-08-24 Thread Luc Van Bogaert
the original delegate post animation. Because of some other considerations, I also chose to implement your code in a subclass rather than a category. -- Luc Van Bogaert http://users.skynet.be/luc.van.bogaert ___ Cocoa-dev mailing list (Cocoa-dev

Document-based app: UI item validation

2011-08-21 Thread Luc Van Bogaert
should be instantiated from my document objects. right? So, that leaves me the option to use the First Responder object. This does work, but I'm still wondering if maybe there is a better approach. Thanks, -- Luc Van Bogaert ___ Cocoa-dev mailing

Re: Document-based app: UI item validation

2011-08-21 Thread Luc Van Bogaert
On 21 Aug 2011, at 15:43, Jerry Krinock wrote: On 2011 Aug 21, at 05:02, Luc Van Bogaert wrote: Adding a windowcontroller to the mainmenu nib also doesn't work, as the windowcontrollers should be instantiated from my document objects. right? That is correct. So, that leaves me

Re: Document-based app: UI item validation

2011-08-21 Thread Luc Van Bogaert
On 21 Aug 2011, at 19:34, Quincey Morris wrote: On Aug 21, 2011, at 09:59 , Luc Van Bogaert wrote: But this still leaves me with the question of how to reference my windowcontroller objects from the mainmenu nib? I need this because I want to modify the title of some menu items, depending

Re: Document-based app: UI item validation

2011-08-21 Thread Luc Van Bogaert
On 21 Aug 2011, at 20:40, Quincey Morris wrote: On Aug 21, 2011, at 11:13 , Luc Van Bogaert wrote: I have found a way to get what I want using the sharedDocumentController object and the current document's list of windows. But actually, I'd prefer using 'validateUserInterfaceItems

Re: Document-based app: UI item validation

2011-08-21 Thread Luc Van Bogaert
On 21 Aug 2011, at 21:57, Quincey Morris wrote: On Aug 21, 2011, at 12:22 , Luc Van Bogaert wrote: What I was trying to explain: I want to change the title of a menuitem, which opens a submenu. Of course the menu items in that submenu all have actions, but the action of the menuitem I'm

Re: [SOLVED] Document-based app: UI item validation

2011-08-21 Thread Luc Van Bogaert
My solution was to assign the menu item (the one with the submenu) a dummy action that does nothing. Then I used the normal 'validateUserInterfaceItem:' mechanism to enable or disable the menu item with that action, based on whether all of the submenu items were enabled or not. You could

How to design a utilities panel as seen in XCode4?

2011-06-20 Thread Luc Van Bogaert
such a configuration, nor do I understand how the various subviews should by organized, so that hiding one view moves the remaining views into place. Could anyone provide or share some tips please? Thank you, -- Luc Van Bogaert ___ Cocoa-dev mailing list

Re: Interface item validation through first responder

2011-06-16 Thread Luc Van Bogaert
On 15 Jun 2011, at 23:12, Quincey Morris wrote: On Jun 15, 2011, at 13:12, Luc Van Bogaert wrote: As I said above, you aren't logging the responder chain, you're logging the nextResponder tree, and not even all of that. Plus, all three tree structures change over time as the UI

Re: Interface item validation through first responder

2011-06-15 Thread Luc Van Bogaert
to the content pane. It seems that the extra view and textfields have somehow broken the mechanism of the responder chain to which the two other views belong. I'm obviously missing something here, and hoping someone can point me in the right direction. -- Luc Van Bogaert On 14 Jun 2011, at 22

Re: Interface item validation through first responder

2011-06-15 Thread Luc Van Bogaert
On 14 Jun 2011, at 22:39, Quincey Morris wrote: When you connect an action to First Responder, that doesn't mean that it's sent to the first responder object, but rather that it's sent to the first object in the responder chain that implements the action. OK, I'm sure I understand this.

Re: Interface item validation through first responder

2011-06-15 Thread Luc Van Bogaert
On 15 Jun 2011, at 19:25, Quincey Morris wrote: On Jun 15, 2011, at 08:56, Luc Van Bogaert wrote: I'm not sure I understand how to accomplish this. What I have already tried, is message the window with makeFirstResponder: passing my view controllers as a parameter. This initially seemed

Re: Interface item validation through first responder

2011-06-15 Thread Luc Van Bogaert
On 15 Jun 2011, at 21:49, Quincey Morris wrote: On Jun 15, 2011, at 12:12, Luc Van Bogaert wrote: Because things still don't work, I have tried to visualize the responder chain by adding this into applicationDidFinishLaunching: NSResponder *nextResponder = [self.window nextResponder

Interface item validation through first responder

2011-06-14 Thread Luc Van Bogaert
view controllers, or is there some better way to solve this problem? -- Luc Van Bogaert http://users.skynet.be/luc.van.bogaert ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: tools for writing help books

2011-06-08 Thread Luc Van Bogaert
I'm using RapidWeaver, available from the AppStore. -- Luc Van Bogaert http://users.skynet.be/luc.van.bogaert ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Profile (Instruments) and XCode 4

2011-05-13 Thread Luc Van Bogaert
. Thanks, -- Luc Van Bogaert ___ 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

Adding custom view in IB

2011-04-14 Thread Luc Van Bogaert
would like to keep using IB to add my custom view to its container, and benefit from the sizing and location attributes IB has to offer. How do I go about to using the custom view, its nib file and the view controller in IB? Could someone please point me in the right direction? Thanks, -- Luc Van

Displaying a custom sheet

2011-04-12 Thread Luc Van Bogaert
also close it correctly by sending it an orderOut: message. I don't understand what is causing the window to be displayed non-modal the first time after it is loaded from the nib. Could anyone please provide some insights. Thank you. -- Luc Van Bogaert luc.van.boga...@me.com

Using the same typedef in multiple files

2011-03-13 Thread Luc Van Bogaert
these different files? Thanks in advance. -- Luc Van Bogaert luc.van.boga...@me.com ___ 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

Help Book authoring tool?

2011-01-30 Thread Luc Van Bogaert
Hello, I would like to solicite some recommendations for an authoring tool to create help books. I'm looking for a preferably freeware application, with a decent html editor. Thanks, -- Luc Van Bogaert luc.van.boga...@me.com ___ Cocoa-dev

Prevent windows from opening multiple times

2011-01-21 Thread Luc Van Bogaert
the window. Any help would be appreciated. Thanks, -- Luc Van Bogaert luc.van.boga...@me.com ___ 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

Connect a NSTableView to a datasource in another nib

2011-01-18 Thread Luc Van Bogaert
datasource object (the app delegate) which is in MainMenu.xib. I hope this does not sound too complicated to some of you, and that someone could provide some hints on how to proceed. Thank you, -- Luc Van Bogaert luc.van.boga...@me.com ___ Cocoa-dev

Re: Connect a NSTableView to a datasource in another nib

2011-01-18 Thread Luc Van Bogaert
. When allocating and initializing the HistoryController from the app delegate, I suppose I could somehow pass a reference to 'self' to the HistoryController instance. Would this be the way to proceed? -- Luc Van Bogaert luc.van.boga...@me.com

sending a message from an initializer method

2011-01-12 Thread Luc Van Bogaert
) { var1 = ...; var2 = ...; var3 = [self computerVar3With:var1:var2]; } return self; } Or is it better to write the algorithm directly as part of the initializer? Thanks, -- Luc Van Bogaert luc.van.boga...@me.com

Avoid selection of text in NSTextField

2011-01-09 Thread Luc Van Bogaert
the NSTextField display a cursor instead, as if it was being edited manually. Could anyone provide some help on how to so this? Thank you! -- Luc Van Bogaert luc.van.boga...@me.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post