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
ld 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/Unsubscribe/Update

Re: Validating NSButton in Swift

2015-12-14 Thread Luc Van Bogaert
> On 14 Dec 2015, at 22:51, Roland King wrote: > > >> On 15 Dec 2015, at 04:10, Luc Van Bogaert > <mailto:luc.van.boga...@me.com>> wrote: >>> >> >> >> I tried what you suggested and made a button subclass and just declared >>

Re: Validating NSButton in Swift

2015-12-14 Thread Luc Van Bogaert
agged 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 accepted as confor

Re: Validating NSButton in Swift

2015-12-13 Thread Luc Van Bogaert
> On 14 Dec 2015, at 00:18, Quincey Morris > wrote: > > On Dec 13, 2015, at 14:59 , Luc Van Bogaert <mailto:luc.van.boga...@me.com>> wrote: >> >> I have a NSButton subclass that I want to conform to >> NSValidatedUserInterfaceItem, so I can call valida

Validating NSButton in Swift

2015-12-13 Thread Luc Van Bogaert
uires 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 _

Re: TableviewSelectionDidChange(_:) not called

2015-12-01 Thread Luc Van Bogaert
> On 30 Nov 2015, at 22:57, Quincey Morris > wrote: > > On Nov 30, 2015, at 12:18 , Luc Van Bogaert wrote: >> >> I can see this is being called when I make any selection change; except when >> I delete the (last) selected row. Deleting the second last row doe

Re: TableviewSelectionDidChange(_:) not called

2015-11-30 Thread Luc Van Bogaert
> On 30 Nov 2015, at 20:28, Quincey Morris > wrote: > > On Nov 30, 2015, at 11:07 , Luc Van Bogaert <mailto:luc.van.boga...@me.com>> wrote: >> >> I have noticed that TableviewSelectionDidChange(_:) is not called in my >> tableview delegate when after

TableviewSelectionDidChange(_:) not called

2015-11-30 Thread Luc Van Bogaert
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,

Re: Trouble w/ key-value binding validation

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

Re: Trouble w/ key-value binding validation

2015-11-07 Thread Luc Van Bogaert
> On 07 Nov 2015, at 01:56, Quincey Morris > wrote: > > On Nov 6, 2015, at 15:23 , Luc Van Bogaert <mailto:luc.van.boga...@me.com>> wrote: >> >> In a tableview with a content binding and a value binding on the table cell >> view textfields to the m

Trouble w/ key-value binding validation

2015-11-06 Thread Luc Van Bogaert
alidateKey(_ :) 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 wr

Request for guidance re. CALayer

2015-01-07 Thread Luc Van Bogaert
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-02 Thread Luc Van Bogaert
hat 'grows' upwards. -- Luc Van Bogaert DotSketcher - www.rixhon.be > Op 03 Oct 2014 om 03:15 heeft Graham Cox het > volgende geschreven: > > >> On 3 Oct 2014, at 7:13 am, Luc Van Bogaert wrote: >> >> I want the table to populate 'from the bottom to the

Re: NSTableView with reversed rows?

2014-10-02 Thread Luc Van Bogaert
ssed more clear what I 'm looking for. -- Luc Van Bogaert > Op 02 Oct 2014 om 23:06 heeft Jonathan Hull het volgende > geschreven: > > Have you considered just inverting the data source? > > Thanks, > Jon > > >> On Oct 2, 2014, at 12:45 PM, Luc

NSTableView with reversed rows?

2014-10-02 Thread Luc Van Bogaert
tableview 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-de

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 wrote: > >> Op 12 Sep 2014 om 23:40 heeft Quincey Morris >> het volgende geschreven: >> >>> On Sep 12, 2014, at 13:57 , Luc Van Bogaert wrote: >>> >>> When I try to close the inspector panel in my

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 > het volgende geschreven: > >> On Sep 12, 2014, at 13:57 , Luc Van Bogaert wrote: >> >> When I try to close the inspector panel in my document base application, I'm >> getting the default alert message

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 Descripti

Re: How to copy Color Panel behaviour?

2014-09-10 Thread Luc Van Bogaert
On 10 Sep 2014, at 23:32, Ken Thomases wrote: > On Sep 10, 2014, at 4:07 PM, Luc Van Bogaert wrote: > >> No succes so far with this. >> >> I subclassed NSPanel and overridden: >> >> - (BOOL) becomesKeyOnlyIfNeeded >> { >> ret

Re: How to copy Color Panel behaviour?

2014-09-10 Thread Luc Van Bogaert
On 10 Sep 2014, at 01:56, Kyle Sluder wrote: > On Tue, Sep 9, 2014, at 06:42 PM, Graham Cox wrote: >> >> On 10 Sep 2014, at 7:13 am, Luc Van Bogaert >> wrote: >> >>> This opens the panel without making it key, which is OK, but it still makes >&

How to copy Color Panel behaviour?

2014-09-09 Thread Luc Van Bogaert
ing it key, 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 ma

Autolayout problem sets frame size to zero

2014-09-04 Thread Luc Van Bogaert
could do this little magnification trick 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

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 wrote: > you may wish to investigate the quartz blend modes, e.g. > kCGBlendModeDifference might work for you. > > > On Sep

Compositing grid over custom view

2014-09-01 Thread Luc Van Bogaert
cces. Is this at all 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.a

Problem resizing Layer-backed view with subview

2014-08-27 Thread Luc Van Bogaert
ind of layout issue with the subview playing its role, but I really haven't got much 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 __

value in KVO change dictionary ?

2014-08-22 Thread Luc Van Bogaert
', and the document gets all the notifications, but 'new' as well as 'old' value in the change dictionary are always 'null', even though I can get a hold of the selected object using '[object selectedObjects]'. So why is t

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" het > volgende geschreven: > > Is there a way to create multiple color wells in a way similar to how

Re: Advise on referencing NSDocument from custom view

2014-08-13 Thread Luc Van Bogaert
this doen't every time though, but just from time to time. For now, I add 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

Re: Advise on referencing NSDocument from custom view

2014-08-10 Thread Luc Van Bogaert
On 10 Aug 2014, at 19:15, Quincey Morris wrote: > On Aug 10, 2014, at 09:01 , Luc Van Bogaert wrote: > >> I was thinking of using a weak property for my custom view to reference the >> document and set this property from the same windowDidLoad: method, but I'm >&g

Advise on referencing NSDocument from custom view

2014-08-10 Thread Luc Van Bogaert
m the same 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

Observing NSArrayController selection property

2014-07-07 Thread Luc Van Bogaert
ath when sending addObject: or removeObject: 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?

Model object with NSImage property in ZIP file

2012-12-26 Thread Luc Van Bogaert
ss" functionality. Again, this almost 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 ___ Coco

Checking document structure in NSDocument based app

2012-11-27 Thread Luc Van Bogaert
NSDocumentController and override 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 mail

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 wrote: > On Nov 11, 2012, at 04:09 , Luc Van Bogaert wrote: > >> However, when my application is not active when the file is dropped, the >> message to the windowcontroller is never sent. >> >> Here&

Display alert sheet when application is not active

2012-11-11 Thread Luc Van Bogaert
I'd rather not take focus away 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 th

Translating resource files

2012-11-09 Thread Luc Van Bogaert
g offered for free on the App Store 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 ___

Re: Binding alignment property of NSTextField

2012-10-28 Thread Luc Van Bogaert
xtfield. On 27 Oct 2012, at 16:06, Luc Van Bogaert 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 inde

Re: Binding alignment property of NSTextField

2012-10-27 Thread Luc Van Bogaert
s that I'm 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 wrote: > On Oct 27, 2012, at 4:26 AM, Luc Van Bogaert wrote: > >> The textfield alignment is b

Binding alignment property of NSTextField

2012-10-27 Thread Luc Van Bogaert
I set the enum 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 modera

Re: Localising "dynamic" string resources in code

2012-10-10 Thread Luc Van Bogaert
On 10 Oct 2012, at 11:45, Ken Thomases 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 &

Localising "dynamic" string resources in code

2012-10-10 Thread Luc Van Bogaert
nil]; } Here also, I'm only seeing the original English text instead of the localized version that's available in the Localized.strings file. All the other string recources in my code get translated correctly. Could anyone please help me find out what it is I'm missin

Detecting when document window is actually displayed

2012-06-09 Thread Luc Van Bogaert
nd results 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, --

Tool for creating application icon

2012-06-07 Thread Luc Van Bogaert
o create 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 V

Observing frame change of a subview

2012-04-15 Thread Luc Van Bogaert
advice 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(at)lists.apple.com Help/Unsubscr

Re: Undomanager for custom object?

2012-03-14 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 >> documen

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

Undomanager for custom object?

2012-03-13 Thread Luc Van Bogaert
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/Unsubs

Re: Animated NSSplitView headache

2012-02-12 Thread Luc Van Bogaert
orarily 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 ___ Cocoa-dev mailing list (Cocoa-dev@li

Animated NSSplitView headache

2012-02-10 Thread Luc Van Bogaert
nd then use the animator proxies. Afterwards, I'm restoring the delegate and the autoresizing behaviour back to their original values. Again, this all works if the subviews were not first collapsed by dragging the divider. -- Luc Van Bogaert. ___

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 cleani

Animating NSSplitView collapse/uncollapse

2012-02-05 Thread Luc Van Bogaert
k fine this way, 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 --

Re: Drag and drop in collectionview

2012-01-28 Thread Luc Van Bogaert
ve those around in my model array? > > If the latter; what kind of identifier could be used for this? Some kind of > ivar with a unique value? How to generate something like this? -- Luc Van Bogaert ___ Cocoa-dev mailing list (Cocoa-dev@

Drag and drop in collectionview

2012-01-28 Thread Luc Van Bogaert
s? Thanks for any advice 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 Hel

NSUndoManager w/ Document based app

2012-01-25 Thread Luc Van Bogaert
hanks 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 the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/U

Where to implement alert ?

2012-01-24 Thread Luc Van Bogaert
nerally add 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 moderato

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) a

How to update preview in NSPrintPanel?

2011-12-25 Thread Luc Van Bogaert
resentedObject.printSettings.checkboxvalue"], nil]; } Any help much 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. Contac

Question about selection in a NSCollectionView

2011-11-16 Thread Luc Van Bogaert
election 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

Document-based app: design question

2011-10-21 Thread Luc Van Bogaert
his code is used 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 f

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

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? > &g

Select model objects with NSTableView using cocoa bindings

2011-10-12 Thread Luc Van Bogaert
what would be needed, in this context, to get the Dot views to redraw 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.

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 a

Set a view's delegate using IB

2011-09-06 Thread Luc Van Bogaert
g part of the latter 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 (Co

Re: Animated Split View

2011-08-24 Thread Luc Van Bogaert
lly the subviews are animated to their desired position and size, the result is not what was expected. I solved this problem by temporarily replacing the splitview delegate with 'self' as a delegate (only implementing 'splitView:shouldHideDividerAtIndex:') prior to

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.

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 >> action

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. >> >

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

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? > >

Document-based app: UI item validation

2011-08-21 Thread Luc Van Bogaert
doesn't work, as the windowcontrollers 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

How to design a utilities panel as seen in XCode4?

2011-06-20 Thread Luc Van Bogaert
ld be used to implement 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

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 > chan

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: >> >> NSResp

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 con

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
ng an extra view with textfields 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. --

Interface item validation through first responder

2011-06-14 Thread Luc Van Bogaert
elegate instead of in my 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

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. Contac

Profile (Instruments) and XCode 4

2011-05-13 Thread Luc Van Bogaert
ppreciated. 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/U

Adding custom view in IB

2011-04-14 Thread Luc Van Bogaert
rection? 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-admins(at)lists.apple.com Hel

Displaying a custom sheet

2011-04-12 Thread Luc Van Bogaert
runs, the sheet is displayed correctly "tied" to the window, and I can 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 pro

Using the same typedef in multiple files

2011-03-13 Thread Luc Van Bogaert
all 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

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 ___ Coco

Prevent windows from opening multiple times

2011-01-21 Thread Luc Van Bogaert
o open 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

Re: Connect a NSTableView to a datasource in another nib

2011-01-18 Thread Luc Van Bogaert
thods. I'm sure it's pretty obvious, but clearly I'm still missing something. When allocating and initializing the HistoryController from the app delegate, I suppose I could somehow pass a reference to 'self' to the HistoryController ins

Connect a NSTableView to a datasource in another nib

2011-01-18 Thread Luc Van Bogaert
y.xib with it's 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 __

sending a message from an initializer method

2011-01-12 Thread Luc Van Bogaert
if (self) { 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

Avoid selection of text in NSTextField

2011-01-09 Thread Luc Van Bogaert
t, and have 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) Ple