A few programming problems...



I'm quite new to Cocoa/Objective-C and the mac platform, and I have a
few problems. I've tried to fix things, I've searched etc. Or maybe
I'm just dumb. Anyway.

1. I have a form containing an NSOutlineView, and a timer which
updates it every 5 seconds, as it gets new data. It has four main
nodes in it. It updates correctly, but whenever it updates, it
collapses all the nodes that are expanded. I want them to stay open
but I can't find a way of doing it? I update it by updating my data
source and then calling the [tableView reloadData] method. Any ideas?

2. I think I've just made a stupid error/don't know what i'm doing
with this one. I've made a dock menu in my NSApplication delegate with
the - (NSMenu *)applicationDockMenu:(NSApplication *)sender method, and
it shows up fine. But I try to update it later by doing (the menu item
starts off disabled when I create the menu):

NSMenuItem *ms = [dockMenu itemWithTitle:@"My Status"];
int msi = [dockMenu indexOfItemWithTitle:@"My Status"];
NSLog(@"%@", ms);
NSLog(@"%d", msi);
[ms setEnabled:YES];
[dockMenu removeItemAtIndex:msi];
[dockMenu insertItem:ms atIndex:msi];
[dockMenu update];

but it doesn't update. Nothing happens. Any random dumb things I
could've done? It retrieves the menu item alright, just doesn't
update.

3. All of my windows open and close correctly with my window
controllers, except for one. It doesn't open when I call
[NSWindowController showWindow:self].

If I have the "open at launch time" (or whatever it is) selected in the
nib file, it opens, but I when I call the close method from the window
controller it doesn't close it, either.

When it is opened the first time it acts as though the window is
displayed, it calls the - (void)windowDidLoad method and starts
running, but the window doesn't show up.

It runs the same as all my other nibs, but for some reason just doesn't
display.


These are probably all just stupid errors which I've messed up from not
knowing what I'm doing well enough, but I don't know how to fix them,
any help would be appreciated because I don't have a clue.

.



Relevant Pages

  • Hijacking that cant be fixed????
    ... I seem to have some kind of hijack being done on my ... on an item and open a new window. ... launch when IE opens. ... This shows a graphic display with degree of "badness" of ...
    (microsoft.public.windowsxp.general)
  • Re: Printer not printing messages - error message
    ... I have tried most of the option provided and no fix. ... An error has occurred in the script on this page. ... in a new window then that window opens blank and when I right click ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: IE will not Fill up Screen
    ... I nothing i did or the aol tech did could fix ... Window display too small ... Many pages are hard coded for an 800 pixel wide display and won't display ... Replies are posted only to the newsgroup for the benefit or other readers. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: problem opening links
    ... > the afternoon I realized that I could not open links in new explorer ... > Window" a new explorer window opens but the web page is never ... > bar) continuously animates but the window never opens the page. ... > display the title of the web page but displays 'No page to display'. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Address Book
    ... | In the Folder Options dialog window select the File Types tab. ... | In the Details for "WAB" extension it should display, Opens with Address ... | In the Edit File Type dialog window, under Actions, open should display. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)