• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Help Linking To A Framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help Linking To A Framework


  • Subject: Help Linking To A Framework
  • From: "digital.pardoe" <email@hidden>
  • Date: Wed, 6 Sep 2006 16:48:30 +0100

Hi,

I am writing a small menu bar based application. Everything is going well so far but I have a small problem. When the menu bar item is clicked on and an action selected any windows that may appear open behind other application windows. I have got around this by programmatically opening all windows and using;

[NSApp activateIgnoringOtherApps:YES];

Beforehand. For automatic updates I use the Sparkle engine and the same disappearing act occurs when 'Check For Updates...' is selected from the menu. The main issue I am struggling with is calling the;

- (IBAction)checkForUpdates:sender;

From 'SUUpdater.h' (inside 'Sparkle.framework' linked in application bundle) programmatically from the particular menu item.

I have successfully linked the header file using;

#include <Sparkle/SUUpdater.h>

But;

- (IBAction)menuItem:(id)sender
{
	[NSApp activateIgnoringOtherApps:YES];
	[SUUpdater checkForUpdates];
}

Does not operate correctly, during compilation the compiler states that 'SUUpdater' may not respond to the action, and if I try to click the menu item the application crashes.

I wish to get more involved in Mac development and not being able to do this is a hurdle.

Can anyone help me to do this correctly?

Thanks In Advance,
Alex
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Programatically detect if any autorelease pool exists?
  • Next by Date: NSRunAlertPanel, Correct Usage
  • Previous by thread: Border around NSMatrix
  • Next by thread: Re: Help Linking To A Framework
  • Index(es):
    • Date
    • Thread