Re: Simple NSDatePicker query

2014-03-17 Thread Reinhard Segeler
Check the project "DatePicker" in the documentation. It should allow you, solving your problem. -- Reinhard Am 17.03.2014 um 13:32 schrieb jonat...@mugginsoft.com: > Is it correct that a textual NSDatePicker can only display dates in short > format ( dd/mm/ )? > Attaching a date forma

Re: Why is an IKImageBrowser method not firing?

2014-03-17 Thread Reinhard Segeler
1. Is the method really called? Log it... 2. Do you update the data source? 3. Is the data source reloaded after updating? -- Reinhard Am 13.03.2014 um 22:07 schrieb David Delmonte: > Hi all, I have a project that includes an NSSheet that displays images. The > data source methods to build

Re: Set Icon For Document-Based Files

2010-11-03 Thread Reinhard Segeler
You have to register it by adding the document (type and icon name) for the document in the target's "Properties" pane and it must be part of your project, as well. -- Reinhard Am 03.11.2010 um 15:17 schrieb PJBorges: Hi, I've made a core data document-based application that works fi

Re: Get wrong tag value from NSPopupButtonCell

2010-10-31 Thread Reinhard Segeler
Created a test project, to isolate the problem with the same results. Filed a bug report to Apple. Thanks -- Reinhard Am 29.10.2010 um 23:51 schrieb Quincey Morris: On Oct 29, 2010, at 14:02, Reinhard Segeler wrote: Can't get the correct tag value in this way. What&#x

Re: Menulet Problem

2010-10-31 Thread Reinhard Segeler
Can't see how your code is really working, but could it be, that the menuItem looses its connection to the textbow... -- Reinhard Am 30.10.2010 um 23:27 schrieb Jozef Dransfield: I have a status item which I'm initialising with a menu like so: statusItem = [[[NSStatusBar systemStatusB

Re: Get wrong tag value from NSPopupButtonCell

2010-10-29 Thread Reinhard Segeler
ebugger. -Jon On Oct 29, 2010, at 2:02 PM, Reinhard Segeler wrote: Hi, Can't get the correct tag value in this way. What's wrong? NSPopUpButtonCell *testCell = [ [ [ NSPopUpButtonCell alloc] init] autorelease]; // olPopups is an Outlet to an NSMatrix [ olP

Re: Get wrong tag value from NSPopupButtonCell

2010-10-29 Thread Reinhard Segeler
g: in the debugger. -Jon On Oct 29, 2010, at 2:02 PM, Reinhard Segeler wrote: Hi, Can't get the correct tag value in this way. What's wrong? NSPopUpButtonCell *testCell = [ [ [ NSPopUpButtonCell alloc] init] autorelease]; // olPopups is an Outlet to

Get wrong tag value from NSPopupButtonCell

2010-10-29 Thread Reinhard Segeler
Hi, Can't get the correct tag value in this way. What's wrong? NSPopUpButtonCell *testCell = [ [ [ NSPopUpButtonCell alloc] init] autorelease]; // olPopups is an Outlet to an NSMatrix [ olPopups selectCellAtRow:0 column:0 ]; testCell = [ olPopups selectedCell

Re: Table column alignment

2010-09-29 Thread Reinhard Segeler
No. -- Reinhard Am 26.09.2010 um 18:04 schrieb k...@highrolls.net: In IB I have set the properties of a table text field cell to be right justified but do not see this result when displaying data; i.e. the data remains left justified. Is there some other setting that must be made for

Re: applicationShouldTerminate gets called on with no edited documents

2010-06-13 Thread Reinhard Segeler
Am 11.06.2010 um 23:51 schrieb Brad Stone: If applicationShouldTerminate would get called like it does with no edited documents I would be in great shape. Why doesn't applicationShouldTerminate get called? ___ Cocoa-dev mailing list (Cocoa-dev@li

Re: NSArrayController/Modal dialog/KVO Gordian knot

2010-06-13 Thread Reinhard Segeler
-- Reinhard Am 12.06.2010 um 17:30 schrieb vincent habchi: the color field should be set to : theDictionary.selection.value.color; I am not familiar with the NSDictionaryController but the keypath looks a bit strange: if theDictionary is what the name says, then a member selection

Re: userDefaultsDidChange is causing a loop with dependent checkbox values

2010-06-13 Thread Reinhard Segeler
How do you bind them to your checkbox? Do other checkboxes change the NSUserdefaults also, when one setting changes, then this can cause the loop, depending hwo they influence each other! When binding values with defaults - or other settings - you don't need NSUserDefaultsDidChangeNotific

Re: Notification of window visible?

2010-06-07 Thread Reinhard Segeler
mation would be neccessary. -- Reinhard Am 07.06.2010 um 03:16 schrieb Chris Idou: Is it? Can't a window become visible without becoming key? - Original Message From: Reinhard Segeler To: Chris Idou Cc: cocoa-dev@lists.apple.com Sent: Fri, 4 June, 2010 4:18:03 PM Subject:

Re: Notification of window visible?

2010-06-03 Thread Reinhard Segeler
The notification NSWindowDidBecomeKeyNotification will do it for you. -- Reinhard Am 04.06.2010 um 07:11 schrieb Chris Idou: How does one get notification that a window has become visible? I can see notifications for most every type of window event except this most obvious one.

Re: Value Transformer with multiple Model Key Paths

2010-05-31 Thread Reinhard Segeler
Am 31.05.2010 um 11:57 schrieb Quincey Morris: I'd suggest that a value transformer solution has *no* advantages whatsoever, plus several disadvantages, compared to providing a property on the model object, unless: Can't follow you with that. I am using the NSValueTransformer on several

Re: posted notifications are sent twice

2010-05-30 Thread Reinhard Segeler
Thank you for that advice. But that was not the problem. -- Reinhard 2010/5/31 Greg Guerin > Reinhard Segeler wrote: > > I post notifications to interchange infos between classes. They are always >> posted twice, even though they are surely only posted once. Does anyb

Re: NSFormatter: get default values

2010-05-30 Thread Reinhard Segeler
It's not clear, waht you mean. A formatter is a formatter, that does not contain values on itself. Or do you mean with "value" the format to use? -- Reinhard Am 31.05.2010 um 01:45 schrieb Rainer Standke: Hello, I have a custom formatter that needs to to look up a default value bas

Re: Value Transformer with multiple Model Key Paths

2010-05-30 Thread Reinhard Segeler
Okay. I usually create a new class and copy the code (.h, .m) from another NSConversion Class. - (id)transformedValue:(id)value { // You should this code, because this assures that you are feeding the desired NSObject - here an NSNumber and is independent from your returned value, because y

Re: posted notifications are sent twice

2010-05-30 Thread Reinhard Segeler
Hi Nick, thank you very much. Your answer helped immediately. I initialized the responsible class in my code and added it later to a nib file, that was loaded also later... Thanks -- Reinhard Am 30.05.2010 um 23:34 schrieb Nick Zitzmann: On May 30, 2010, at 3:19 PM, Reinhard Segeler

posted notifications are sent twice

2010-05-30 Thread Reinhard Segeler
I post notifications to interchange infos between classes. They are always posted twice, even though they are surely only posted once. Does anybody know why? Thanks -- Reinhard ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Value Transformer with multiple Model Key Paths

2010-05-30 Thread Reinhard Segeler
Did you subclass the NSValueTransformer class for that purpose? -- Reinhard Am 30.05.2010 um 21:51 schrieb Mikael Wämundson: Hi, Problem is the following: I want to set the color of the text in each line in a TableView depending on two attributes of the object: one boolean and one

Re: Activating application raises windows meant to be invisible

2010-05-30 Thread Reinhard Segeler
There are several delegate methods for NSApplication, e.g. applicationWillUnhide and NSWindow e.g. windowWillResize:toSize:, etc. If you override them, you should be to intervent the displaying of a window by ordering out or iconizing them again... -- Reinhard Am 27.05.2010 um 14:44 sc

Re: Get controller from nib

2010-05-27 Thread Reinhard Segeler
Hi James, today I read your mail: I ran into a problem with the reference some time ago. I have solved it by posting/observing a notification with the reference as the only object in the userInfo dict.. That works fine and assures, that the reference can be determined exactly. The only pro

Re: Why I can't see my localized nib?

2010-05-18 Thread Reinhard Segeler
In a test app I ran into the same problem. That changed after I connected the menu command orderFrontStandardAboutPanel: - by default connected via the File's Owner - to the overridden method in my class. -- Reinhard Am 16.05.2010 um 13:06 schrieb Gustavo Pizano: Hello all. I was t

Re: BarView won't run

2010-05-18 Thread Reinhard Segeler
I've checked your project with 10.5. I have deleted the class Bar View in IB, you don't need it there. Connected the slider to the action-method of the BarView-view in the window. There is no protocol so I commented it out, maybe it's defferent in 10.6 In IB I disconnected all broken c

Re: NSBox sizeToFit problem

2010-05-09 Thread Reinhard Segeler
Hi, I have created a test project as well and it works. The clipping of your content might be caused by the settings in the IB - I have fixed the margins for each object, what changed the behaviour of the sizeToFit-command immediately to the desired result. BUT: The size to fit command in

Re: NSBox sizeToFit problem

2010-05-06 Thread Reinhard Segeler
The help says "If you wish to change grouping behavior or other behavioral characteristics of the NSBox class, consider overriding setContentView:, sizeToFit, or addSubview: (inherited from NSView)." maybe you didn't override the method "siezToFit" in your class managing the NSBox... --

Re: NSBox sizeToFit problem

2010-05-06 Thread Reinhard Segeler
The help says "If you wish to change grouping behavior or other behavioral characteristics of the NSBox class, consider overriding setContentView: , sizeToFit, or addSubview: (inherited from NSView)." maybe you didn't override the method "siezToFit" in your class managing the NSBox... --Reinhar

Re: NSBox sizeToFit problem

2010-05-06 Thread Reinhard Segeler
The help says "If you wish to change grouping behavior or other behavioral characteristics of the NSBox class, consider overriding setContentView:, sizeToFit, or addSubview: (inherited from NSView)." maybe you didn't override the method "siezToFit" in your class managing the NSBox... --

Re: [SOLVED] Re: Linking a specific controller instance to user defaults

2010-05-06 Thread Reinhard Segeler
Maybe you could set an NSUserDefaults value, that is being read in +initialize/-init of the "view" class to create your settingsname there... -- Reinhard Am 06.05.2010 um 03:41 schrieb Graham Cox: Hi Quincey. That occurred to me too but seems a bit hackish. I solved it by asking the delega

Problem posting mails

2010-04-30 Thread Reinhard Segeler
I have a problem to post mails here, even though other members of the list can see and read my mail, they don't appear in Mail on my Mac. Right now I changed a setting and I hope it helps. I have contacted the master, but got no solution that helped. Sorry, if misusing the list. _

Re: Changing folder attributes

2010-04-26 Thread Reinhard Segeler
Am 26.04.2010 um 16:36 schrieb Jens Alfke: On Apr 26, 2010, at 12:54 AM, Reinhard Segeler wrote: my app creates a folder on a MacServer-Volume (FileSharing), but can't change the attributes of that folder using setAttributes:ofItemAtPath:error: . It always receives the error: Y

Changing folder attributes

2010-04-26 Thread Reinhard Segeler
Hi, my app creates a folder on a MacServer-Volume (FileSharing), but can't change the attributes of that folder using setAttributes:ofItemAtPath:error: . It always receives the error: You do not have appropriate access privileges to save file. I have read and write previliges to the serve

Re: Simple question

2010-04-22 Thread Reinhard Segeler
Hi, correct me if I'm wrong, but what you're doing is a calculation with the pointers ( * of NSNumber) not the values. You have to calculate it like this: NSInteger fieldOne = [ [ managedObject valueForKey:@"key1"] intValue]; // if it's an integer NSInteger fieldTwo = [ [ managedOb

Re: [NSWindow title] isn't the title

2010-04-22 Thread Reinhard Segeler
Hi, you can use "lastPathComponent" on the string you received by "title" and use that as the "title" for the other window. Am 22.04.2010 um 07:05 schrieb Quincey Morris: This is more of a curiosity than anything else, but ... I have a (non-document) window whose title is set with 'setTi

Re: Trouble with NSButtonCell

2009-09-03 Thread Reinhard Segeler
Don't know anything about the toolkit you're using, but I would use setAction: for single click and setDoubleAction: for double click,... Hope this helps. Reinhard Am 03.09.2009 um 05:41 schrieb Dave DeLong: Hi everyone, I'm using Brandon's excellent BWToolkit in a project of mine right n

Re: NSTextView moves when being resized ???

2009-08-29 Thread Reinhard Segeler
Hallo Anders, did you receive my message below, because that solves the problem. I have checked, that in a testproject. The explanation is: If you set a new max width/height its calculated and drawn from the origin, which is the lower left edge of your view. You find more details in the NS

Re: NSTextView moves when being resized ???

2009-08-29 Thread Reinhard Segeler
The coordinate-system for a view starts with the lower left corner, not at the upper left. There is command, that sets the coordinate system to the upper left corner, but I can't find it right now. But I guess, that the first info is what you need to know. Reinhard Am 29.08.2009 um 12:38 s

Re: Get error message about registered observers when Object receives dealloc message

2009-08-28 Thread Reinhard Segeler
It simply tells you, that if you have removed observation for an instance of your class MYObservee somewhere in your code, so it can't remove observation again. I would try remove observation for the mentioned key path only, just to see if happens with that again. That's what I read from th

Using shortcuts and FirstResponder

2009-08-26 Thread Reinhard Segeler
ven't added it, and bound it to the shown actions. Any suggestions are welcome, because I have no idea, what I could do more. Thanks in advance Reinhard Segeler ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Nested AutoRelease Pools Crash

2009-06-05 Thread Reinhard Segeler
Maybe you solved the problem in the meantime, otherwise I recommend to use the solution below, which I use in my app - without the if condition with break - and works fine Am 26.04.2009 um 18:37 schrieb Trygve Inda: - (void)threadMethod:(id)anObject { NSAutoreleasePool* outterPool = [[NSAu