tidying HTML up

2008-07-18 Thread Ivan
reasonable time/effort limits). Hope someone can help! Cheers! Ivan. ___ 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)

Re: tidying HTML up

2008-07-18 Thread Ivan
Please Mr. Jobe, keep on-topic :-) I'm asking for alternatives to NSXMLDocument to get a tidy XHTML document ready to be parsed with the NSXMLParser class, nothing to do with iPhone... :-) OK, I'm sory, I'll check for anot

NSTokenField

2008-04-29 Thread Ivan Blagdan
plete thing in a different manner, or is there something I am missing in the docs? Thanks... and cheers, Ivan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contac

Re: Trigonometric Problem, Particularly tan() Function

2008-07-12 Thread Ivan Kourtev
Just to make sure, you are aware those functions from math.h take arguments in radians, and not degrees, right? -- ivan On Jul 13, 2008, at 12:30 AM, Patrick Walker wrote: For some reason, using standard trigonometric functions are not behaving as they should once you hit 90 degrees. I&#

CFSTR and double-double quotes

2008-07-26 Thread Ivan Galic
FSTRINGS__ #define CFSTR(cStr) ((CFStringRef) __builtin___CFStringMakeConstantString ("" cStr "")) #else #define CFSTR(cStr) __CFStringMakeConstantString("" cStr "") #endif Can anyone explain what do the double-double quotes mean? Is it

NSComboBoxCell will not select

2008-02-27 Thread Ivan C Myrvold
.jpg Then the new text sticks: http://www.myrvold.org/cocoa/comboAfterEnter.jpg If I use NSLog to see the indexOfSelectedItem of the combo box, it is always -1. Any ideas why the combo box cell have this behaviour? Ivan ___ Cocoa-dev mailing l

Re: NSComboBoxCell will not select

2008-02-27 Thread Ivan C Myrvold
have a better idea. Ivan Den 27. feb.. 2008 kl. 12:23 skrev Ivan C Myrvold: I have problem with making a NSComboBoxCell keep the value selected. Here is what I am doing: I have an NSOutlineView, where the last column (Change To) is binded to an NSTreeController (Value

Check box cell in NSTableView

2008-03-11 Thread Ivan C Myrvold
, also correct. Then it starts over again as checked, checked, unchecked... I have checked the Mixed button in IB. What have I missed here? Ivan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Check box cell in NSTableView

2008-03-11 Thread Ivan C Myrvold
spect this to be a bug. Ivan Den 11. mars. 2008 kl. 14:42 skrev Stephane Sudre: On Mar 11, 2008, at 13:15, Ivan C Myrvold wrote: I can not get my check boxes in an NSTableColumn to show the mixed state. The first time I click an empty check box, it shows as if it is checked, it should have

Re: Check box cell in NSTableView

2008-03-11 Thread Ivan C Myrvold
binding., and 1 shared dataCell in the table column. Ivan Den 11. mars. 2008 kl. 16:21 skrev Mike Abdullah: I suspect here that you need to learn a little more about how NSTableView works. There is NOT one cell per row, so call -setState: basically does nothing. instead, NSTableView creates

Alternate row colors and selection

2008-03-25 Thread Ivan C Myrvold
all the other columns have the selection color, and there is a gap for this column. How do I fix this? If I set the "Alternating Rows" in IB, the selection color is fine for all the columns, but I can't use that as I have some special requirements of the c

Re: Obtaining the foreground application's path

2008-03-25 Thread Ivan C Myrvold
This will give you an NSDictionary with a lot of information about the active application: [[NSWorkspace sharedWorkspace] activeApplication]; Ivan Den 25. mars. 2008 kl. 08:12 skrev Matt Burnett: Im sure this is not the right list, but it is the closest one i could think of for this topic

Core Data add object

2008-05-25 Thread Ivan C Myrvold
d for this, - (void)addCallEventsObject:(CallEvent *)value; simply doing [thecall addCallEventsObject:thecallevent]; is not working, of course. So how do I add this object? Ivan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not po

Re: Core Data add object

2008-05-25 Thread Ivan C Myrvold
I think I was too fast with my conclusion that it doesn't work. I just looked at the warning I got, which says: "NSManagedObject may not respond to -addCallEventsObject". Ivan Den 25. mai. 2008 kl. 13:08 skrev Ivan C Myrvold: I have a core data project with two ent

Detect editing a outline view cell

2008-06-09 Thread Ivan C Myrvold
I have been trying to find a solution to this for a long time: I want to have a action method to execute when I doubleclick in an NSOutlineView cell to start editing it. In an ordinary NSTextField delegate method textShouldBeginEditing, but that doesn't work for NSTextCell.

Re: Detect editing a outline view cell

2008-06-09 Thread Ivan C Myrvold
To answer my own question: Use the NSOutlineView delegate method outlineView:shouldEditTableColumn:item: Ivan Den 10. juni. 2008 kl. 08:11 skrev Ivan C Myrvold: I have been trying to find a solution to this for a long time: I want to have a action method to execute when I doubleclick in

Running a daemon

2008-06-18 Thread Ivan C Myrvold
on I can't call this. Ivan ___ 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 Subscriptio

Re: Running a daemon

2008-06-18 Thread Ivan C Myrvold
Den 18. juni. 2008 kl. 14:22 skrev [EMAIL PROTECTED]: Ivan C Myrvold wrote on 2008-06-18 13:07:50: I have developed a daemon that have an Objective-C class "ApplicationWatcher" which checks the foreground applications with NSWorkspace. In my main I create the ApplicationWatche

Center image in NSTableView header

2009-01-14 Thread Ivan C Myrvold
rningImage]; NSAttributedString *headerAS = [NSAttributedString attributedStringWithAttachment:ta]; [[[oactiveElementsTable tableColumnWithIdentifier:@"warningword"] headerCell] setAttributedStringValue:headerAS]; Ivan ___ Cocoa-dev mai

Cocoa daemon

2008-08-01 Thread Ivan C Myrvold
: ( , , , , , , , , ) Ivan ___ 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: Cocoa daemon

2008-08-01 Thread Ivan C Myrvold
I try to implement the menu in the NSStatusBar systemStatusBar. I would appreciate if anyone have any hint as to why the menu will not drop down, and show the menu items. Must be something I am missing here. Ivan Den 1. aug.. 2008 kl. 12:32 skrev Negm-Awad Amin: Hi, I do not think, that

Icon in NSComboBoxCell menu item

2008-08-25 Thread Ivan C Myrvold
Is it possible to have icon in the menu item of an NSComboBox cell? Ivan ___ 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

Core Data relationship disappears

2009-01-31 Thread Ivan C Myrvold
I have an Entity named ServiceItem which have a relationship to another Entity named Transponder. I am creating the ServiceItem by looping through a text file, scanning for a service item pattern, and create the object with a newObject message to an NSArrayController. ServiceItem *serviceI

Re: Core Data relationship disappears

2009-02-01 Thread Ivan C Myrvold
I just found out why, and it was as simple as I didn't check the "To- Many Relationship" check box in my xcdatamodel for the reverse relationship from Transponder to ServiceItem. After doing that, all the transponder data came into my table view. Ivan Den 1. feb.. 2009 kl. 01

Core Data done loading

2009-04-12 Thread Ivan C Myrvold
I have a document-based Core Data application, and I want to do some initializing when the application is done loading data from the persistent store. I couldn't find any notifications in NSManagedContext for this. Ivan ___ Cocoa-dev ma