Re: NSCollectionView: Different-sized items? Docs?

2009-02-09 Thread Andreas Mayer
Am 09.02.2009 um 22:46 Uhr schrieb I. Savant: If all you want is a basic NSCollectionView-like widget that manages a single column with homogenous subviews of arbitrary height, however, the approach isn't trivial but it's not overly-difficult either. Right. And, actually, I do have just

Re: NSCollectionView: Different-sized items? Docs?

2009-02-09 Thread Andreas Mayer
Am 10.02.2009 um 02:00 Uhr schrieb Andreas Mayer: Am 09.02.2009 um 22:46 Uhr schrieb I. Savant: If all you want is a basic NSCollectionView-like widget that manages a single column with homogenous subviews of arbitrary height, however, the approach isn't trivial but it's not overly

Re: NSProgressIndicator (spinning) on a dark background?

2009-02-07 Thread Andreas Mayer
Am 06.02.2009 um 18:55 Uhr schrieb Guy Umbright: I have a black background and would like to display a spinning progress indicator but it draws with a light background. Is there a way to do this with NSProgressIndicator? I don't think there is. But you could modify my

Re: NSProgressIndicator (spinning) on a dark background?

2009-02-07 Thread Andreas Mayer
Am 07.02.2009 um 14:39 Uhr schrieb Andreas Mayer: But you could modify my AMIndeterminateProgressIndicatorCell class: http://www.harmless.de/cocoa-code.php#progressindicator Well, this seemed to be a useful addition, so I just added a color property myself. :) Andreas

Re: Creating a managed object without adding it to the context?

2009-01-24 Thread Andreas Mayer
Am 24.01.2009 um 23:51 Uhr schrieb Jerry Krinock: On 2009 Jan 24, at 14:13, Ulai Beekam wrote: How do I programmatically create a managed object (with respect to some entity in a particular context of course) but WITHOUT adding it to the context? I do not believe this is possible. A

Re: Creating a managed object without adding it to the context?

2009-01-24 Thread Andreas Mayer
Am 25.01.2009 um 00:51 Uhr schrieb Ulai Beekam: My problem is that when I add directly to the managed object context, the item is not getting selected automatically in the array controller (by the way, I see the selection visually by means of the table view bound to the array controller)

Re: addSubview bottleneck

2009-01-24 Thread Andreas Mayer
Am 24.01.2009 um 23:29 Uhr schrieb Twisted Theory: I am constructing an application that draws rooted trees (graphs with a distinguished 'first' node) by creating an NSView subclass for each node and adding them as subviews of the graph view. There is a big problem when the number of

Re: displaying custom menu popups with any button?

2008-12-24 Thread Andreas Mayer
Am 24.12.2008 um 09:52 Uhr schrieb aaron smith: What's the trick to displaying an NSMenu associated with a left click of a button? What about NSView's - (NSMenu *)menuForEvent:(NSEvent *)theEvent There's also NSMenu's + (void)popUpContextMenu:(NSMenu *)menu withEvent:(NSEvent *)event

Re: displaying custom menu popups with any button?

2008-12-24 Thread Andreas Mayer
Am 24.12.2008 um 12:52 Uhr schrieb aaron smith: Does anyone know how to make the NSMenu smaller, like in interface builder how you can set a button to mini? By using the appropriate font? There's a method + (void)popUpContextMenu:(NSMenu *)menu withEvent:(NSEvent *)event forView:(NSView

Re: selectionShouldChangeInTableView called twice

2008-12-23 Thread Andreas Mayer
Am 23.12.2008 um 15:26 Uhr schrieb Andre Masse: Should have think of this sooner! Sure, there's no feedback why the table view isn't working [...] You could overlay the table view with an additional partially transparent view (i.e. white, 15% opaque or so) to create a dimming effect.

Re: selectionShouldChangeInTableView called twice

2008-12-21 Thread Andreas Mayer
Am 21.12.2008 um 04:14 Uhr schrieb Andre Masse: Now, suppose the user somehow move the focus from the detail view (by switching application and coming back, accidently clicking in the master view or whatever). This is a third case, he may have not completed its modifications and should be

Re: selectionShouldChangeInTableView called twice

2008-12-21 Thread Andreas Mayer
Am 21.12.2008 um 16:53 Uhr schrieb Andre Masse: I'm using a similar design, not by locking the fields but setting a isDirty flag in the model after the user start editing the record. That's exactly the point I was trying to make. Editing should be a distinct mode, consciously chosen by

Re: selectionShouldChangeInTableView called twice

2008-12-21 Thread Andreas Mayer
Am 21.12.2008 um 20:47 Uhr schrieb Andreas Mayer: What about - (NSIndexSet *)tableView:(NSTableView *)tableView selectionIndexesForProposedSelection: (NSIndexSet*)proposedSelectionIndexes Ops. That's what you mentioned in your last sentence. Please ignore

Re: Memory Management Q. 1 and 2

2008-12-21 Thread Andreas Mayer
Am 21.12.2008 um 18:37 Uhr schrieb Bill Bumgarner: Though still useful to know the above, for new code there is generally no reason to avoid GC: http://developer.apple.com/documentation/Cocoa/Conceptual/GarbageCollection/Introduction.html Unless you want your code to run on anything

Re: Rollover on custom Cells

2008-12-03 Thread Andreas Mayer
Am 29.11.2008 um 21:44 Uhr schrieb Gustavo Pizano: Can somebody please give me and advise of what Im might be doing wrong? No, because you didn't give any relevant information (aka source code). or any efficient method to achieve this purpose ? You may want to have a look at my

Re: Newbie: Referencing Objects (second try)

2008-10-27 Thread Andreas Mayer
Am 27.10.2008 um 03:20 Uhr schrieb john fogg: And how do I do this with my main application delegate? I want to call it from wherever I am. That one is already stored by your NSApplication object: [NSApp delegate] NSApp is a predeclared global variable that holds the current

Re: Problems when putting a window between desktop and desktop icons

2008-10-24 Thread Andreas Mayer
Am 24.10.2008 um 11:09 Uhr schrieb Markus Amalthea Magnuson: My window should not intercept those clicks since it is obviously behind the icons, but it does anyway. Ah. I never noticed that. I can only speculate, but I guess it's actually the background view that is handling icon

Re: Problems when putting a window between desktop and desktop icons

2008-10-23 Thread Andreas Mayer
Am 23.10.2008 um 19:48 Uhr schrieb Markus Amalthea Magnuson: Any other suggestions are welcome. I did not see any reply to Charles' suggestion: Am 21.10.2008 um 23:09 Uhr schrieb Charles Steinman: Does [window setIgnoresMouseEvents:YES] work? In case that does *not* work, you may need

Re: Calling UNIX command from Cocoa

2008-10-16 Thread Andreas Mayer
Am 17.10.2008 um 00:03 Uhr schrieb development2: Yeah I know about NSTask, I just can't get it too work correctly. This might help: http://www.harmless.de/cocoa-code.php#shellwrapper Andreas ___ Cocoa-dev mailing list

Re: Darker Round Rect NSButtons

2008-09-22 Thread Andreas Mayer
Am 20.09.2008 um 23:26 Uhr schrieb Colin Doncaster: but I can't help wonder if I'm missing a simple setting somewhere. There is no simple setting. People usually create their own buttons. I've got a bunch of classes you might be able to use: http://www.harmless.de/cocoa-code.php#rollover

Re: Tabbed preference panels

2008-08-25 Thread Andreas Mayer
Am 22.08.2008 um 18:29 Uhr schrieb Sumner Trammell: Can anyone point me to some Cocoa programming guide docs, or programming topics docs, on tabbed preference panels? I don't have any docs. But I do have source: http://www.harmless.de/cocoa-code.php#prefpane Andreas

Re: Putting a spinning progress indicator in a outline

2008-08-02 Thread Andreas Mayer
Am 02.08.2008 um 01:42 Uhr schrieb Markus Spoettl: I think Mail uses a custom cell type. There's a 3rd party open- source implementation by Andreas Mayer, at http://www.harmless.de/cocoa-code.php Thanks, that looks pretty good. I can't get it to work with binding right now

Re: How to receive my own crash reports?

2008-07-21 Thread Andreas Mayer
Am 21.07.2008 um 14:49 Uhr schrieb Torsten Curdt: http://vafer.org/projects/feedbackreporter/ Feedback welcome :) I don't have git installed and I don't plan to change that to look at just one project. Could you please include the source with the download? Andreas

Re: Avoiding mutual retain cycles

2008-07-21 Thread Andreas Mayer
Am 21.07.2008 um 20:50 Uhr schrieb Markus Spoettl: I'm wondering if there is a general rule or mechanism that suggests what to do in such a case. About retain cycles: http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Concepts/ObjectOwnership.html The solution to the

Re: How to receive my own crash reports?

2008-07-21 Thread Andreas Mayer
Am 21.07.2008 um 23:25 Uhr schrieb Torsten Curdt: But there is also http://vafer.org/gitweb/FeedbackReporter.git Could you please include the source with the download? Sure. No worries. Or is including the download URL enough? Of course. Thank you! Andreas

Re: Avoiding mutual retain cycles

2008-07-21 Thread Andreas Mayer
Am 21.07.2008 um 22:02 Uhr schrieb Markus Spoettl: For example NSCollectionView, NSCollectionViewItem and its view. One may or may not suspect the NSCollectionViewItem owns the corresponding view. It may as well not own it and instead the NSCollectionView owns both. I don't know why

Re: controlling system muting ?

2008-07-08 Thread Andreas Mayer
Am 08.07.2008 um 12:46 Uhr schrieb [EMAIL PROTECTED]: 2. Bring up an alert and after a set amount of time without the user responding to it, then start making things louder. Don't. If I mute the sound, I don't want to hear a thing, even if this machine is going to blow up. Should I

Re: IB3 and custom controls: problem with actions

2008-07-05 Thread Andreas Mayer
Am 05.07.2008 um 08:37 Uhr schrieb Vitaly Ovchinnikov: I didn't see Sent Action group. It doesn't look like an IB bug. Or it looks like a very big bug, but nobody reported it here... I couldn't find a way to add Sent Actions to a custom control either. Just hook it up per code in

Re: Style Question (Robert Claeson)

2008-07-04 Thread Andreas Mayer
Am 04.07.2008 um 18:16 Uhr schrieb Gary L. Wade: For example, this kind of code just bugs me when I'm balancing braces back-and-forth: Well, I find *this* one preferable: #if WE_WANT_TO_ADD_THIS_FEATURE_IN_FINAL_BUILDS if (thisTestIsTrue newFunctionalityIsAvailable) { #else if

Re: trackmouse problems in Leopard

2008-06-28 Thread Andreas Mayer
Am 28.06.2008 um 15:24 Uhr schrieb Moray Taylor: I have an app that uses a custom NSCell that implements the - (BOOL)trackMouse:(NSEvent *)theEvent inRect:(NSRect)cellFrame ofView:(NSView *)controlView untilMouseUp:(BOOL)untilMouseUp method. In Tiger, this works just fine, if I build

Re: How to hide the divider in a collapsed NSSplitView pane

2008-06-21 Thread Andreas Mayer
Am 22.06.2008 um 03:58 Uhr schrieb Markus Spoettl: There's actually a better way that Milen pointed out, though. If you don't need to support systems earlier than 10.5, yes. Andreas ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: looking for a crc code

2008-06-15 Thread Andreas Mayer
I've got some old CRC code lying around. Don't know if it's Intel/64bit clean though. Maybe someone want's to check? :) // // NSData_CRC.h // // CRC algorithms for 16, 32 and 64 bit widths // // Put together by Arne Schween, Peter N. Lewis, Matthew Dillon and Thomas Tempelmann // // Be

Re: Cocoa n00b frustrations

2008-06-08 Thread Andreas Mayer
Am 08.06.2008 um 05:29 Uhr schrieb Andy Lee: If you look at the docs for NSControl you'll see the following delegate methods, which may be what you want: Yes. And since Andy was too humble to mention it, let me do so: Instead of Apple's online documentation or the Xcode doc browser, you

Re: Cocoa n00b frustrations

2008-06-05 Thread Andreas Mayer
Am 05.06.2008 um 15:32 Uhr schrieb Charles Jenkins: I had a Nib file that went bad. Never had that problem, so I can't help much. But, as you found out, the best way to fix it is probably to create a completely new nib. You create an object (.h, .m, and object instance in IB) that a

Re: Newbie question:IB, NSView, NSViewController

2008-06-05 Thread Andreas Mayer
Am 05.06.2008 um 15:46 Uhr schrieb Johnny Andersson: let's suppose that I want to put a module consisting of an NSViewController, controlling the view with two buttons, which in turn contains a DrawView, on my main window. You don't put controllers on windows. Do I put my

Re: NSNotificationCenter: addObserver:selector:name:object: - Specifying a single event

2008-05-28 Thread Andreas Mayer
Am 28.05.2008 um 06:00 Uhr schrieb Jens Alfke: I have defined Quit: on my main object, so I pass self as the first argument. This is, functionally, correct. However, the method should be named quit:, not Quit:. And while we are at it, quit: isn't a good name either, 'cause it sounds

Re: Query about Zip command

2008-05-24 Thread Andreas Mayer
Am 24.05.2008 um 08:08 Uhr schrieb Andrew Farmer: GUI applications generally do not take arguments - opened files are passed using Apple Events. Hence, Launch Services doesn't provide any way to pass arguments. You can use Apple Events yourself, though. See NSWorkspace's -

Re: Cleaning up a singleton

2008-05-24 Thread Andreas Mayer
Am 24.05.2008 um 08:07 Uhr schrieb Sebastian Nowicki: The library requires me to call a function which allocates memory to that global variable, and afterwards call a function which deallocates that memory. My singleton class calls the function to initialise in the init method, but I

Re: Cocoa et al as HCI usability problem

2008-05-21 Thread Andreas Mayer
Am 21.05.2008 um 15:12 Uhr schrieb Joseph Ayers: I'll cite one example. I've been spending two weeks trying to get a table to reloadData to a multi column NSTableView that I created programmatically. Creating the table view was straightforward. Getting it to populate is yet another matter.

Re: Cocoa et al as HCI usability problem

2008-05-20 Thread Andreas Mayer
Am 20.05.2008 um 09:47 Uhr schrieb Peter Duniho: It's Turing. As in Alan Turing. Thank you very much for pointing out that typo. -.- Just because two languages are Turing-Complete, that doesn't mean that they will have equivalent implementations. I didn't say that. You talked about not

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Andreas Mayer
Am 19.05.2008 um 13:11 Uhr schrieb Peter Duniho: I just don't see how declaring an interface and then using it is so inferior to an informal protocol that it justifies the entire message-dispatching paradigm, especially given that there are in fact advantages to the former. At best, it's

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Andreas Mayer
Am 19.05.2008 um 22:36 Uhr schrieb Peter Duniho: But not the sort of compelling we really need the language to be this way otherwise it just doesn't work example I was hoping for. There is no such example. As was already pointed out, you can do the same things in every touring complete

Re: Cocoa bindings and reluctance to use NSPopupButon

2008-05-18 Thread Andreas Mayer
Am 19.05.2008 um 04:03 Uhr schrieb mmalc crawford: Which is exactly what the documentation takes pains to tell you. I guess it's just not clear enough. There should be a big red warning box: Don't try to use Core Data or Cocoa Bindings unless you are an experienced Cocoa programmer and

Re: Cocoa et al as HCI usability problem

2008-05-18 Thread Andreas Mayer
Am 19.05.2008 um 04:08 Uhr schrieb Michael Vannorsdel: Hopefully you won't get rude people responding with RTFM and such. Actually, I don't understand why an RTFM kind of answer is perceived as rude. I'm really happy when I get an RTFM *with a link* to the appropriate document. Also, I

[ANN] New version of AMRollOverButton with IB3 plugin

2008-05-02 Thread Andreas Mayer
Rollover buttons highlight when you move the mouse pointer over them. The appearance is widely configurable. Now comes with an Interface Builder 3.x plugin. http://www.harmless.de/cocoa-code.php#rollover This source code is available under the BSD License. Andreas

<    1   2