Status Item image not showing

I have a status Item app andI am using a custom view. My image in the status item has been showing and working until recently. Is it something I have changed or maybe it was a bug that it was showing and now it fix. Please Help me fix this. Here is the relevant code:
AppDelegate.h
#import <Cocoa/Cocoa.h>
@class View;
@interface AppDelegate : NSObject <NSApplicationDelegate>{
    NSStatusItem *statusItem;
    View *_View;
    NSImage *statusImage;
    NSImage *statusHighlightImage;
    NSMenu *statusMenu;
- (IBAction)shutdown:(id)sender;
- (IBAction)restart:(id)sender;
- (IBAction)sleep:(id)sender;
- (IBAction)about:(id)sender;
@property (assign) IBOutlet NSWindow *aboutWindow;
@property (nonatomic, strong, readonly) View *View;
@property (nonatomic, strong, readonly) NSStatusItem *statusItem;
@end
AppDelegate.m
- (void)awakeFromNib {
    statusItem = [[[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength] retain];
    NSBundle *bundle = [NSBundle mainBundle];
    statusImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@"icon" ofType:@"png"]];
    statusHighlightImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@"hicon" ofType:@"png"]];
    View *view = [View new];
    view.image = statusImage;
    [statusItem setView:view];
    [statusItem setToolTip:@"Power Bar"];
    view.target = self;
    view.action = @selector(leftClick:);
    view.rightAction = @selector(showMenu:);
    [view release];
    [statusItem setImage:statusImage];
    [statusItem setAlternateImage:statusHighlightImage];
    [statusItem setMenu:statusMenu];
    [statusItem setHighlightMode:YES];
    [statusItem setView:[[[View alloc] init] autorelease]];
    [statusItem setTarget:self];
- (void)leftClick:(id)sender {
    NSLog(@"Left!");
- (void)showMenu:(id)sender {
    NSLog(@"Right!");
    [self.statusItem popUpStatusItemMenu:statusMenu];
- (void)dealloc
    [[NSStatusBar systemStatusBar] removeStatusItem:self.statusItem];
    [super dealloc];
View.h
#import <Cocoa/Cocoa.h>
@interface View : NSView {
    NSImage *image;
    NSImage *alternativeImage;
    id target;
    SEL action, rightAction;
@property (retain) NSImage *image;
@property (retain) NSImage *alternativeImage;
@property (assign) id target;
@property (assign) SEL action, rightAction;
@end
View.m
@implementation View
@synthesize image, alternativeImage, target, action, rightAction;
- (void)mouseUp:(NSEvent *)event {
    if([event modifierFlags] & NSControlKeyMask) {
        [NSApp sendAction:self.rightAction to:self.target from:self];
    } else {
        [NSApp sendAction:self.action to:self.target from:self];
- (void)rightMouseUp:(NSEvent *)event {
    [NSApp sendAction:self.rightAction to:self.target from:self];
- (void)dealloc {
    self.image = nil;
    [super dealloc];
- (void)drawRect:(NSRect)rect {
    [self.image drawInRect:self.bounds fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1];
    [self.alternativeImage drawInRect:self.bounds fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1];

Please Help

Similar Messages

  • LeaveRequest Work Items are not shows in SBWP TCODE workplace under outbox

    Hi
    Friends
    I used work flow 12300111 for leave request process and I activated that work flow.
    I applied leave through ESS from portal(Employee login)employee sends a leave request sends good,
    and I got Leave request(work items) Managers in box(uwl in Manager Login in portal).
    Manger Approve the leave request has been approved successfully.
    can I check whether leave request is processed in R/3.
    in tcode se38-RPTARQDBVIEW - UNDER leave request(Leave)->STATUS>COMPLETED,
    But in r/3 i execute the Tcode SBWP...
    here is no work items are not showing in outbox..
    Please help me
    Rafi Shaik

    HI
    Sidhu
    Tanks For Ur Replay
    i am doing as for u r note..
    AFTER DEBUGGING....
    function module-- SWK_LOCAL_OUTBOX_GET-under THERE IS NO table->SWW_OUTBOX
    PARAMETER NAMES ARE THERE(AVAILABLE)..BUT THIS  (SWW_OUTBOX) IS NOT THERE IN TABLES OPTION
    WI_LIST_S
    WI_LIST_E
    WI_LIST_F
    STATUSFILTER
    TASK_FILTER
    yes it wont be shown in sbwp outbox as it is java wd after completion you ll only see for approval in his inbox use swi5...
    IN SWI5 TCODE>COMPLETED WORK ITEMS BY AGENT AND TASK-UNDER SHOWING MY LEAVE REQUEST(GOOD)..
    CAN PLEASE HELP ME
    HOW CAN I GET THE LEAVE WORK ITEMS UNDER SBWP(OUTBOX)
    TANKS
    RAFI SHAIK

  • Leave Request work items are not showing in SBWP TCODE under OUTBOX .

    Hi
    Friends
    I used work flow 12300111 for leave request process and I activated that work flow.
    I applied leave through ESS from portal(Employee login)employee sends a leave request sends good,
    and I got  Leave request(work items) Managers in box(uwl in Manager Login in portal).
    Manger Approve the leave request has been approved successfully.
    can I check whether leave request is processed in R/3.
    in tcode se38-RPTARQDBVIEW - UNDER leave request(Leave)->STATUS>COMPLETED,
    But in r/3 i execute the Tcode SBWP...
    here is no work items are not showing in outbox..
    Please help me
    Rafi Shaik

    it wont be shown in outbox of SBWP
    you need to check via SWIA or rptarqdbview or SWI5 for the user
    these are java based tasks so will be done in UWL. you can see only the tasks but after approval they are disappeared.
    The outbox shows the last 30 days by default. This default cannot be
    changed. This 30 days selection period is always set when you enter
    the outbox. However, the user can change the selection period by
    clicking the button 'Change selection period' on top of the grid
    control but this as you know will be reset once you log out.
    This is how the mapping from the
    backend workplace folders to the UWL tabs should work:
    UWL tab                        Backend folder
    Notifications                  Deadline Messages
    Tasks-> Completed Tasks        Outbox -> Workitems executed by me
    Tracking -> My Requests        Outbox -> Started Workflows
    Tracking -> Forwarded          Outbox -> Forwarded workitems
    Edited by: Siddharth Rajora on Aug 5, 2011 10:04 AM

  • BLOB image not shows in JSP page!!

    Hi Dear all,
    I had tried to configure how to show BLOB image to jsp page . The code are works fine and servlet works ok but image can not show only. can you help me that what need to be added. Please help me.
    Can any experts help me? BLOB image not shows in JSP page. I am using ADF11g/DB 10gR2.
    My as Code follows:
    _1. Servlet Config_
        <servlet>
            <servlet-name>images</servlet-name>
            <servlet-class>his.model.ClsImage</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>images</servlet-name>
            <url-pattern>/render_images</url-pattern>
        </servlet-mapping>
      3. class code
    package his.model;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Iterator;
    import java.util.Map;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.Row;
    import oracle.jbo.ViewObject;
    import oracle.jbo.client.Configuration;
    import oracle.jbo.domain.BlobDomain;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    public class ClsImage extends HttpServlet
      //private static final Log LOG = LogFactory.getLog(ImageServlet.class);
      private static final Log LOG = LogFactory.getLog(ClsImage.class);
      public void init(ServletConfig config)
        throws ServletException
        super.init(config);
      public void doGet(HttpServletRequest request,
                        HttpServletResponse response)
        throws ServletException, IOException
        System.out.println("GET---From servlet============= !!!");
        String appModuleName = "his.model.ModuleAssetMgt";//this.getServletConfig().getInitParameter("ApplicationModuleName");
        String appModuleConfig = "TempModuleAssetMgt";//this.getServletConfig().getInitParameter("ApplicationModuleConfig");
        String voQuery ="select ITEM_IMAGE from MM_ITEMIMAGE where IMAGE_NO = 'P1000000000006'" ;// 'P1000000000006' this.getServletConfig().getInitParameter("ImageViewObjectQuery");
        String mimeType = "jpg";//this.getServletConfig().getInitParameter("gif");
        //?IMAGE_NO='P1000000000006'
        //TODO: throw exception if mandatory parameter not set
        ApplicationModule am =
          Configuration.createRootApplicationModule(appModuleName, appModuleConfig);
          ViewObject vo =  am.createViewObjectFromQueryStmt("TempView2", voQuery);
        Map paramMap = request.getParameterMap();
        Iterator paramValues = paramMap.values().iterator();
        int i=0;
        while (paramValues.hasNext())
          // Only one value for a parameter is expected.
          // TODO: If more then 1 parameter is supplied make sure the value is bound to the right bind  
          // variable in the query! Maybe use named variables instead.
          String[] paramValue = (String[])paramValues.next();
          vo.setWhereClauseParam(i, paramValue[0]);
          i++;
       System.out.println("before run============= !!!");
        // Run the query
        vo.executeQuery();
        // Get the result (only the first row is taken into account
        System.out.println("after run============= !!!");
        Row product = vo.first();
        //System.out.println("============"+(BlobDomain)product.getAttribute(0));
        BlobDomain image = null;
        // Check if a row has been found
        if (product != null)
          System.out.println("onside product============= !!!");
           // We assume the Blob to be the first a field
           image = (BlobDomain) product.getAttribute(0);
           //System.out.println("onside  run product============= !!!"+image.toString() +"======="+image );
           // Check if there are more fields returned. If so, the second one
           // is considered to hold the mime type
           if ( product.getAttributeCount()> 1 )
              mimeType = (String)product.getAttribute(1);       
        else
          //LOG.warn("No row found to get image from !!!");
          LOG.warn("No row found to get image from !!!");
          return;
        System.out.println("Set Image============= !!!");
        // Set the content-type. Only images are taken into account
        response.setContentType("image/"+ mimeType+ "; charset=windows-1252");
        OutputStream os = response.getOutputStream();
        InputStream is = image.getInputStream();
        // copy blob to output
        byte[] buffer = new byte[4096];
        int nread;
        while ((nread = is.read(buffer)) != -1)
          os.write(buffer, 0, nread);
          //System.out.println("Set Image============= loop!!!"+(is.read(buffer)));
        os.close();
        // Remove the temporary viewobject
        vo.remove();
        // Release the appModule
        Configuration.releaseRootApplicationModule(am, false);
    } 3 . Jsp Tag
    <af:image source="/render_images" shortDesc="Item"/>  Thanks.
    zakir
    ====
    Edited by: Zakir Hossain on Apr 23, 2009 11:19 AM

    Hi here is solution,
    later I will put a project for this solution, right now I am really busy with ADF implementation.
    core changes is to solve my problem:
        byte[] buffer = new byte[image.getBufferSize()];
        int nread;
        vo.remove();
        while ((nread = is.read(buffer)) != -1) {
          os.write(buffer);
        }All code as below:
    Servlet Code*
      public void doGet(HttpServletRequest request,
                        HttpServletResponse response) throws ServletException,
                                                             IOException {
        String appModuleName =
          "his.model.ModuleAssetMgt";
        String appModuleConfig =
          "TempModuleAssetMgt";
      String imgno = request.getParameter("imgno");
        if (imgno == null || imgno.equals(""))
          return;
        String voQuery =
          "select ITEM_IMAGE from MM_ITEMIMAGE where IMAGE_NO = '" + imgno + "'";
        String mimeType = "gif";
        ApplicationModule am =
          Configuration.createRootApplicationModule(appModuleName,
                                                    appModuleConfig);
        am.clearVOCaches("TempView2", true);
        ViewObject vo = null;
        String s;
          vo = am.createViewObjectFromQueryStmt("TempView2", voQuery);
        // Run the query
        vo.executeQuery();
        // Get the result (only the first row is taken into account
        Row product = vo.first();
        BlobDomain image = null;
        // Check if a row has been found
        if (product != null) {
          // We assume the Blob to be the first a field
          image = (BlobDomain)product.getAttribute(0);
          // Check if there are more fields returned. If so, the second one
          // is considered to hold the mime type
          if (product.getAttributeCount() > 1) {
            mimeType = (String)product.getAttribute(1);
        } else {
          LOG.warn("No row found to get image from !!!");
          return;
        // Set the content-type. Only images are taken into account
        response.setContentType("image/" + mimeType);
        OutputStream os = response.getOutputStream();
        InputStream is = image.getInputStream();
        // copy blob to output
        byte[] buffer = new byte[image.getBufferSize()];
        int nread;
        vo.remove();
        while ((nread = is.read(buffer)) != -1) {
          os.write(buffer);
        is.close();
        os.close();
        // Release the appModule
    Configuration.releaseRootApplicationModule(am, true);
    }Jsp Tag
    <h:graphicImage url="/render_images?imgno=#{bindings.ImageNo.inputValue}"
                                                        height="168" width="224"/>

  • Workflow status column is not showing the internal status values (Inprogress, Started, Suspended, Completed)

    I've created SPD 2013 workflow and deployed them onto that document library, This workflow execute on item update event. When updating library item, workflow triggered and completed successfully but workflow status column is not
    showing the Internal Status values rather it is showing the Stage information. I've unchecked the "Automatically update stage name on workflow status" and republished the workflow. After that, it is still showing the stage information. Any help
    is really appreciated.

    Hi Venkadesh,
    It is by design that 2013 workflow will show stage name in the workflow status column when
    Automatically update the workflow status to the current stage name is checked.
    And the workflow status column will be blank when Automatically update the workflow status to the current stage name is unchecked.
    For existing workflows, the workflow status will still exists with the previous values after unchecking Automatically update the workflow status to the current stage name.
    We can use Set Workflow Status action to update the workflow status value based on our needs.
    Best regards,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Crystal Report Images Not Showing - JSP inside /WEB-INF folder

    Hi Experts,
    I am using Crystal report for Eclipse and also using Struts2 and tiles framework combination.
    The problem is when viewing the report all I've got is red X on all images and the graph image also not showing. This is when I use tiles and my jsp is inside the web-inf folder.
    This is my struts link: href="s:url value='/report/reportOpen.action?report=1'
    I've checked that the path to the viewer generated HTML is not correct. see code below.
    src="../../../crystalreportviewers/js/crviewerinclude.js"
    But when I test to access a simple jsp viewer that resides on the web root folder, this works fine but of course this is not what I want to have. I need to have my banner and menus on top of the report page (using tiles)
    This is my jsp link: href="s:url value='/ReportViewer.jsp?report=1'
    Viewer generated HTML below.
    src="crystalreportviewers/js/crviewerinclude.js"
    This might be a common problem and that you can share to me your solution.
    Note: I removed the script tags because I can't submit this entry.
    Thank you  in advance,
    Regards,
    Rulix Batistil
    Crystal Report Images Not Showing - JSP inside /WEB-INF folder

    Hi Saravana,
    After a few experimentation from your idea i was able to figure out the problem and now it is working.
    I don't have to copy the folder to where my jsp resides but still maintains it in the root location:  web/crystalreportviewers
    The changes should always be in web.xml.
    1st: change the crystal_image_uri value to ../crystalreportviewers
    2nd: change crystal_image_use_relative value to "web"
    Change to "web" instead of webapp because that is what I named my web root folder.
    <context-param>
              <param-name>crystal_image_uri</param-name>
              <param-value>../crystalreportviewers</param-value>
         </context-param>
         <context-param>
              <param-name>crystal_image_use_relative</param-name>
              <param-value>web</param-value>
         </context-param>
    Thank you. You showed me the way on how to solve the 3 day problem.
    BTW, my next problem is when clicking on any buttons prev/next/print/export, I got this error HTTP Status 404.
    Well, at least for now I can view my initial report.  I just need to figure out the next issue and with the help of the great people here in the forum.
    Thanks a lot.
    Regards,
    Rulix
    Edited by: Rulix Batistil on Nov 26, 2008 7:27 AM

  • Have 2 airport extreme base stations connected in chain.  Airport utility shows slave unit without power. However, power is on slave unit, but status lights do not show up at all. Small green lights at each back port blink.  Anyone have any ideas?

    Have 2 airport extreme base stations connected in chain.  Airport utility shows slave unit without power. However, power is on slave unit, but status lights do not show up at all. Small green lights at each back port blink.  Anyone have any ideas?

    Unfortunately, you are describing the symptoms of an AirPort Extreme with a failing (or failed) internal power supply.
    As a last resort, try a Factory Default Reset on the AirPort Extreme as follows:
    Power off the AirPort by pulling the power cord
    Wait a minute or two
    Hold in the reset button first, and keep holding it in for an additional 8-10 seconds while you simultaneously plug the power back into the AirPort
    Release the reset button and allow a full minute for the AirPort to restart
    Now try to configure the AirPort again.  If you continue to see the same symptoms as before, the AirPort will need to be replaced.

  • Reg: Certain Open Items are not showing in open item clearing F-44

    HI all,
    I want clear open items using with f-44 but cetain open items are not showing in opeing item clearing.   i checked in FBL1N all open items are shwoing i want see all open items inf-44 how to see plz help me
    with regards
    JK Rao

    Hi,
    Check whether you r giving some additional selection take it as none and are the items in the account have any special indicator  you might not be giving here.
    reward pts if useful
    regds

  • Excise Item TAB not showing in MIRO

    Hi Expert,
    While doing Miro, Excise Item Tab not showing we have check the details Like Tax code, Chapter ID, and excise rate Material.
    Kindly help me ,
    Thanks
    Pranav

    Hi,
    Please go to transaction code MIGO and check whether excise tax exists or not ? if yes, please click on and click on Miscellaneous tab
    In case it is shown as In process we would not able to see excise details in MIRO.
    Hope, this solves your issue else revert.
    Regards,
    Tejas

  • Reg Batch in delivery  some items are not showing gross weight please help

    please give me your help
    in Deliveries some items are not showing gross weight
    please give me some help

    Dear Ramsuresh,
              Check are maintaining gross weight in the Master data of those items or not.
    If not maintain in the Material master then create delivery
    I hope it will help you
    Regards,
    Murali.

  • On OSX 10.6.8 Mac Mail sent items do not show the Bcc field. Adjusting settings in mail/prefs/viewing/custom/bcc has no affect on Mail, ie Bcc still does not appear on sent items. Anyone got a fix?

    On OSX 10.6.8 Mac Mail sent items do not show the Bcc field. Adjusting settings in mail/prefs/viewing/custom/bcc has no affect on Mail, ie Bcc still does not appear on sent items. Yet another example of Mac caring not a jot about the performance of versions of OS and software running on on older hardware. Anyone got a fix by any chance? Oh and fyi I need to see the Bcc in sent items to confirm sent email is attaching to Salesforece - when I see the Bcc I know I can delete it as a copy will be in SForce. Big thanks W.

    On OSX 10.6.8 Mac Mail sent items do not show the Bcc field. Adjusting settings in mail/prefs/viewing/custom/bcc has no affect on Mail, ie Bcc still does not appear on sent items. Yet another example of Mac caring not a jot about the performance of versions of OS and software running on on older hardware. Anyone got a fix by any chance? Oh and fyi I need to see the Bcc in sent items to confirm sent email is attaching to Salesforece - when I see the Bcc I know I can delete it as a copy will be in SForce. Big thanks W.

  • Another Images not Showing up thread

    I know there are multiple threads out there about images not showing up on the login page of application express, and I have browsed most of them without success.
    My images folder is in:
    C:\oracle\product\10.1.0\db_1\Apache\Apache\images\
    My dads.conf file has specified:
    Alias /i/ "C:\oracle\product\10.1.0\db_1\Apache\Apache\images\"
    Address of missing image in I.E. is:
    http://<host>:7777/i/htmldb/apex_logo.gif
    When I ran @apexins I specified /i/ for the virtual images directory.
    I am running Oracle Database 10gR2, with Oracle HTTP Server that came with the Oracle Database 10g Companion CD Release 2.
    I am using APEX 3.2.
    When I try to go to
    http://<host>:7777/i/
    I get:
    You don't have permission to access /i/ on this server.
    I also cannot login to APEX. When I type my username/password and click the Login button, it does nothing (nothing loads, nothing changes... nothing happens). I don't know if this is related?
    Thank you,
    ~Tom

    I found the problem -
    In my dads.conf file I had:
    Alias /i/ "C:\oracle\product\10.1.0\db_1\Apache\Apache\images\"
    When I really needed:
    Alias /i/ "C:\oracle\product\10.1.0\db_1\Apache\Apache\images/"
    Note the end slash after images changed from backslash to forward.
    Silly me.

  • Images not showing in the jlabel/jbutton

    Hello all,
    I've a package in which my cards directory is located along with all my src files and compiled classes. All my images ****.gif files are inside this directory.
    Then I've following the icon object.
    protected static JLabel lblDeck;The following code is used to get the image.
      String imgPath;
         imgPath = isImageExists("imgBG1.gif");
              if (imgPath == "")
              {     // If the image of Card Deck(imgDeck) is not Found
                   lblDeck = new JLabel();
                   lblDeck.setBackground(new Color(0, 64, 128));
                   lblDeck.setOpaque(true);
                   flagImgDeckFound = false;
              } else {
                   // If the image of Card Deck is Found
                   imgDeck     = new ImageIcon(imgPath);
                   lblDeck = new JLabel(imgDeck);
    // Check if the image exists else return "";
      protected String isImageExists(String imgName) {
              java.net.URL imgURL = getClass().getResource("cards/" + imgName);
             if (imgURL != null)
             {     return (imgURL.toString());     }
             else
                  JOptionPane.showMessageDialog(null, "File not Found: " + imgURL);
                  return "";
         }I'm still unable to get the image in the jlabel!
    When i checked the path, it is exactly returning the path of the file.
    But its neither loading the image into the jlabel nor is it returning "".
    This is just the label part i've other jbuttons also. Even they are not displaying any images.

    aLkeshP wrote:
    can everyone see this thread?
    YES FER-CHRISE-SAKE.
    Just how many times do you intend posting the same identical question?
    images not showing in the jlabel/jbutton
    Problem in imageicon
    iconImage on JButton & JLabel
    Re: images not showing in the jlabel/jbutton

  • Likely bug with external editing (in CS5 not CS6 beta) and edited image not showing back up in LR

    I have come across something strange today that I've not seen before. I'm running LR 4.0 under Win7 64-bit. I usually use Photoshop CS6 beta as my external editor, but invoke CS5 when I have to use some tools that don't support the beta. Here is the scenario:
    * I have CS5 open
    * I externally edit an image in CS5 and Save it from CS5 when I'm done
    * The edited image does not show up in LR
    * I close LR and reopen it
    * There is the edited image!
    I have duplicated this many times this evening. I don't think I've seen it when I've used CS6 beta.

    Something strange is going on because I had the behavior reported of edited image not showing up after using another filter, Nik Silver Efex Pro 2.

  • TS4337 I have a Google calendar that is syncing with my iPad and on my MacBook Air. However, the calendar items are not showing up when I access iCloud via the Internet. Any suggestions?

    I have a Google calendar that is syncing with my iPad and on my MacBook Air. However, the calendar items are not showing up when I access iCloud via the Internet. Any suggestions?

    On the iPad tap Settings > iCloud
    Toggle Documents & Data off then back on then restart your iPad.
    Hold the On/Off Sleep/Wake button down until the red slider appears. Slide your finger across the slider to turn off iPhone. To turn iPhone back on, press and hold the On/Off Sleep/Wake button until the Apple logo appears.
    On the iMac open System Preferences > iCloud
    Deselect the box next to Documents & Data then reselect it then restart your iMac.

Maybe you are looking for