How do I use JSP to track online user

Hi,
I am using JPSs to build a website,and I want these JSPs to detect and display how many users are active browsing on my website and their usernames.I know I can use session to track cocurrent users online,but I had to use some external class to do that,so my Q is that is there pure JSP solution for this without use bean or call other class?
Thanks!
John

Okay,
I am fairly new to the whole JSP thing, but I
I understand what you are saying by putting the login
names into a vector. What I don't understand is how
you would set up the vector. I know this isnt going
to be syntactically correct but for example - :
In my file Logon.jsp lets say I have the following
code:
Vector v = new Vector();
String LoginName = session.getValue("login");
v.add(LoginName);
Now the problem I see with this code is that
t everytime someone logs in, Vector v is going to be
reset to a new empty vector and instead of adding to
an already existing vector, this code would just only
be able to hold at most, one login name. Where would
I declare my vector and how do I prevent it from being
wiped out? I am new to this, so please dont bash me
too hard.
EdThis is why you would want to use an external class.
Write a class which has the vector as an instance variable.
The class should have a method to add to the vector
when someone logs in and remove them when they log out.
Use the <jsp:useBean ... scope='application'> tag in your JSP.
This will make the class available to all JSPs in the application.
The first time your class is called it is instantiated.
After the first call it is read from the application object and
is not re-instantiated. You can call your add/remove methods from
a scriptlet in the JSP.

Similar Messages

  • How can WLS use JSP pages in a Web Application witth just a JRE [Web Application, WAR, JSP, weblogic.jsp.pageCheckSeconds and JRE]

              How can WLS use JSP pages in a Web Application (either a .war file or a war directory structure) without a java compiler?
              I suspect either the JSP specification is flawed (i.e. it doesn't take account of servers using just a JRE), or BEA's implementation is broken.
              Production servers do not have a JDK installed. They only have a JRE. Therfore a java compiler is not present on the machine that the Web Application is deployed onto.
              On the development machine, when the server is requested to load the JSP it creates a tmpwar directory within the Web Application directory structure. This is then included in the resultant .war file thus:
              D:\war>jar -tf gmi.war
              META-INF/
              META-INF/MANIFEST.MF
              gmiService.jsp
              WEB-INF/
              WEB-INF/classes/
              WEB-INF/classes/com/
              WEB-INF/classes/com/bt/
              WEB-INF/classes/com/bt/gmi/
              WEB-INF/classes/com/bt/gmi/gmiService.class
              WEB-INF/getList.xsl
              WEB-INF/getListByConnection.xsl
              WEB-INF/getListByDistrict.xsl
              WEB-INF/getListByDistrictConnection.xsl
              WEB-INF/lib/
              WEB-INF/source/
              WEB-INF/source/build.bat
              WEB-INF/source/gmiService.java
              WEB-INF/web.xml
              WEB-INF/weblogic.xml
              tmpwar/
              tmpwar/jsp_servlet/
              tmpwar/jsp_servlet/_gmiservice.class
              tmpwar/jsp_servlet/_gmiservice.java
              When deployed on the production server with the web.xml file set to use the following values (note XML stripped):
              weblogic.jsp.pageCheckSeconds
              -1
              weblogic.jsp.precompile
              false
              weblogic.jsp.compileCommand
              javac
              weblogic.jsp.verbose
              true
              weblogic.jsp.packagePrefix
              jsp_servlet
              weblogic.jsp.keepgenerated
              false
              And in the weblogic.properties file:
              weblogic.httpd.webApp.gmi=war/gmi
              I've also tried with the .war file, but that insists on creating another tmpwar directory outside of the .war file.
              Then, although I have set pageCheckSeconds to -1 (don't check and don't recompile) ter production server still attempts to recompile the JSP's:
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: init
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param verbose initialized to: true
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param packagePrefix initialized to: jsp_servlet
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param compileCommand initialized to: javac
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param srcCompiler initialized to weblogic.jspc
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param superclass initialized to null
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param workingDir initialized to: /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param pageCheckSeconds initialized to: -1
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: initialization complete
              Mon Sep 25 11:40:12 BST 2000:<I> <WebAppServletContext-gmi> Generated java file: /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.java
              Mon Sep 25 11:40:14 BST 2000:<E> <WebAppServletContext-gmi> Compilation of /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.java failed: Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/javac/Main
              java.io.IOException: Compiler failed executable.exec([Ljava.lang.String;[javac, -classpath, /opt/Solaris_JRE_1.2.1_04/lib/rt.jar:/opt/Solaris_JRE_1.2.1_04/lib/i18n.jar:/opt/Solaris_JRE_1.2.1_04/classes:/var/wls/5.1/weblogic/lib/weblogic510sp4boot.jar:/var/wls/5.1/weblogic/classes/boot:/var/wls/5.1/weblogic/eval/cloudscape/lib/cloudscape.jar:/var/wls/5.1/weblogic/lib/wleorb.jar:/var/wls/5.1/weblogic/lib/wlepool.jar:/var/wls/5.1/weblogic/lib/weblogic510sp4.jar:/var/wls/5.1/weblogic/license:/var/wls/5.1/weblogic/classes:/var/wls/5.1/weblogic/lib/weblogicaux.jar:/opt/wls-servers/gmiServer/weblogic/gmiServer/serverclasses:/opt/wls-servers/gmiServer/weblogic/lotusxsl.jar:/opt/wls-servers/gmiServer/weblogic/xerces.jar:/opt/wls-servers/gmiServer/weblogic/logging.jar::/opt/wls-servers/gmiServer/weblogic/war/gmi/WEB-INF/classes:/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war, -d, /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war, /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.java])
              at java.lang.Throwable.fillInStackTrace(Native Method)
              at java.lang.Throwable.fillInStackTrace(Compiled Code)
              at java.lang.Throwable.<init>(Compiled Code)
              at java.lang.Exception.<init>(Compiled Code)
              at java.io.IOException.<init>(Compiled Code)
              at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Compiled Code)
              at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:200)
              at weblogic.servlet.jsp.JspStub.compilePage(Compiled Code)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
              at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:187)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:142)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:744)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:692)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:251)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
              at weblogic.kernel.ExecuteThread.run(Compiled Code)
              

    The default Java compiler from sun lives in the tools.jar that comes with
              the JDK. Just add that to your set of JARs which are deployed in production
              and you should be fine. No need to install the full JDK - just make the
              tools.jar available to WebLogic.
              Regards
              James
              James Strachan
              =============
              email: [email protected]
              web: http://www.metastuff.com
              "Martin Webb" <[email protected]> wrote in message
              news:[email protected]...
              >
              > How can WLS use JSP pages in a Web Application (either a .war file or a
              war directory structure) without a java compiler?
              >
              > I suspect either the JSP specification is flawed (i.e. it doesn't take
              account of servers using just a JRE), or BEA's implementation is broken.
              >
              > Production servers do not have a JDK installed. They only have a JRE.
              Therfore a java compiler is not present on the machine that the Web
              Application is deployed onto.
              >
              > On the development machine, when the server is requested to load the JSP
              it creates a tmpwar directory within the Web Application directory
              structure. This is then included in the resultant .war file thus:
              >
              > D:\war>jar -tf gmi.war
              > META-INF/
              > META-INF/MANIFEST.MF
              > gmiService.jsp
              > WEB-INF/
              > WEB-INF/classes/
              > WEB-INF/classes/com/
              > WEB-INF/classes/com/bt/
              > WEB-INF/classes/com/bt/gmi/
              > WEB-INF/classes/com/bt/gmi/gmiService.class
              > WEB-INF/getList.xsl
              > WEB-INF/getListByConnection.xsl
              > WEB-INF/getListByDistrict.xsl
              > WEB-INF/getListByDistrictConnection.xsl
              > WEB-INF/lib/
              > WEB-INF/source/
              > WEB-INF/source/build.bat
              > WEB-INF/source/gmiService.java
              > WEB-INF/web.xml
              > WEB-INF/weblogic.xml
              > tmpwar/
              > tmpwar/jsp_servlet/
              > tmpwar/jsp_servlet/_gmiservice.class
              > tmpwar/jsp_servlet/_gmiservice.java
              >
              > When deployed on the production server with the web.xml file set to use
              the following values (note XML stripped):
              >
              > weblogic.jsp.pageCheckSeconds
              > -1
              >
              > weblogic.jsp.precompile
              > false
              >
              > weblogic.jsp.compileCommand
              > javac
              >
              > weblogic.jsp.verbose
              > true
              >
              > weblogic.jsp.packagePrefix
              > jsp_servlet
              >
              > weblogic.jsp.keepgenerated
              > false
              >
              >
              > And in the weblogic.properties file:
              >
              > weblogic.httpd.webApp.gmi=war/gmi
              >
              > I've also tried with the .war file, but that insists on creating another
              tmpwar directory outside of the .war file.
              >
              >
              > Then, although I have set pageCheckSeconds to -1 (don't check and don't
              recompile) ter production server still attempts to recompile the JSP's:
              >
              >
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: init
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              verbose initialized to: true
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              packagePrefix initialized to: jsp_servlet
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              compileCommand initialized to: javac
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              srcCompiler initialized to weblogic.jspc
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              superclass initialized to null
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              workingDir initialized to:
              /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              pageCheckSeconds initialized to: -1
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp:
              initialization complete
              > Mon Sep 25 11:40:12 BST 2000:<I> <WebAppServletContext-gmi> Generated java
              file:
              /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.
              java
              > Mon Sep 25 11:40:14 BST 2000:<E> <WebAppServletContext-gmi> Compilation of
              /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.
              java failed: Exception in thread "main" java.lang.NoClassDefFoundError:
              sun/tools/javac/Main
              >
              > java.io.IOException: Compiler failed
              executable.exec([Ljava.lang.String;[javac, -classpath,
              /opt/Solaris_JRE_1.2.1_04/lib/rt.jar:/opt/Solaris_JRE_1.2.1_04/lib/i18n.jar:
              /opt/Solaris_JRE_1.2.1_04/classes:/var/wls/5.1/weblogic/lib/weblogic510sp4bo
              ot.jar:/var/wls/5.1/weblogic/classes/boot:/var/wls/5.1/weblogic/eval/cloudsc
              ape/lib/cloudscape.jar:/var/wls/5.1/weblogic/lib/wleorb.jar:/var/wls/5.1/web
              logic/lib/wlepool.jar:/var/wls/5.1/weblogic/lib/weblogic510sp4.jar:/var/wls/
              5.1/weblogic/license:/var/wls/5.1/weblogic/classes:/var/wls/5.1/weblogic/lib
              /weblogicaux.jar:/opt/wls-servers/gmiServer/weblogic/gmiServer/serverclasses
              :/opt/wls-servers/gmiServer/weblogic/lotusxsl.jar:/opt/wls-servers/gmiServer
              /weblogic/xerces.jar:/opt/wls-servers/gmiServer/weblogic/logging.jar::/opt/w
              ls-servers/gmiServer/weblogic/war/gmi/WEB-INF/classes:/opt/wls-servers/gmiSe
              rver/weblogic/war/gmi/_tmp_war, -d,
              /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war,
              /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.
              java])
              > at java.lang.Throwable.fillInStackTrace(Native Method)
              > at java.lang.Throwable.fillInStackTrace(Compiled Code)
              > at java.lang.Throwable.<init>(Compiled Code)
              > at java.lang.Exception.<init>(Compiled Code)
              > at java.io.IOException.<init>(Compiled Code)
              > at
              weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Compiled Code)
              > at
              weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:200)
              > at weblogic.servlet.jsp.JspStub.compilePage(Compiled Code)
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
              > at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:18
              7)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :118)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :142)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:744)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:692)
              > at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager.java:251)
              > at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
              > at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
              > at weblogic.kernel.ExecuteThread.run(Compiled Code)
              >
              >
              >
              

  • How can I use ALL audio tracks in multiclip editing?

    I want to be able to use all audio tracks after the multiclip cut.
    It's only a two camera shoot, but I want to be able to use the ambient room sound from the second camera ... and control its level (in relation to the master audio track on the first camera) AFTER the cuts are made.
    Is this possible in multiclip editing? And how does one go about it?
    Apologies. I've spent an hour or so in the manual, and it isn't clear ... or I'm just not finding the right reference.
    All ears,
    Ben

    Sorry if I'm steering you down a path you don't want to go or even if there's a better way but I wouldn't be ding complex audio mixing anywhere near the multiclip interface. Export your reference movie or nest the multiclip project into another sequence, bring in your additional tracks, get to work. Just my preferences, I put a bunch of rough keyframes in the audio tracks and enter some markers (and make a lot of paper notes). Then I go back using the large mixer window to do the fine tweaking.
    Stick around for a couple of days, some other multiclip users with more experience than I will offer some more useful suggestions.
    bogiesan

  • How can i get the amount of online user??

    when a user sign in or sign out,the amount of online user should change��
    and i now use a class that implements HttpSessionAttributeListener to implements this function,has three method:
    public void attributeAdded(HttpSessionBindingEvent se)
    public void attributeReplaced(HttpSessionBindingEvent se)
    public void attributeRemoved(HttpSessionBindingEvent se)
    and by attributeAdded i can count the amount of online user correctly when a user sign in.
    but when sign out,there are some troubles:
    user can leave through three method 1.signout button(it is related to session.removeattribute("user")),and use attributeRemoved can count the amount of online user correctly when a user sign out.
    2.close the browser directly
    3.not close the browser directly but use this browser navigator to another webpage(by enter url in address toolbar)
    the problem is: when user sign out through method 2 and method 3,i can't listen it
    and attributeRemoved not invoked.
    help!!!!!!!!!!!!!!!!!,how can solve it,thanks a lot!!!

    Sooner or later server will kill session so the only way is to look at HttpSessionListener interface
    Paul

  • How can I use KM with named anonymous users

    Hi All,
    Do any of you have an idea of how I can use named anonymous user togheter with KM? I need the anonymous users to get access to some km iviews with documents and news.
    Regards,
    Lennart

    Hi Lennert,
    see
    /thread/26806 [original link is broken]
    Anonymous access to KM content
    Link from external sites into KM
    Hope it helps
    Detlev

  • How can i use original audio track in video editing for iPad 2?

    I am struggling to understand how the video editing apps work for iPad 2, and specifically, to understand why all the editing apps I have looked at explain how you can make these terrific video clips by ADDING audio tracks from iTunes, or. From the audio library. I just want to use the original audio on the tape?  Is that so strange? Today I took a video clip of my daughter singing with her guitar. I wanted to shorten the length a bit, so I downloaded a couple of Visio editing apps. When I pulled the clip out of my Camera Roll storage into the video editing screen, there was no sound at all,though there were ways to add other sounds ( for .99cents) most frustrating is that nowhere, does Apple explain this.  The tutorials just show someone editing a video of their friends ( with no sound) And adding text and music, as if it's normal not to include the actual sound that originally accompanied the video clip.  Seems like i wouldn't be the only customer who would prefer to hear my daughters own voice Ina video of her singing, and would like thisexplainedbefore I started downloading editing apps. If it can't be done, couldn't This be posted?

    I am not understanding your question, or your complaint, if it is a complaint.
    I movies takes a video clip, including its audio track. 
    You have the option of mutimg it, or of importing some other sound from your music library, or narrating.  What other option do you want?

  • How do i use a photo from online site and get it into photoshop?

    I found and signed up for Flickr == how do I ger a photo I like from there into photoshop?

    Hi,
    Most of the time there is a place to download the photo (more actions) to the right of the photo, then open it in photoshop using File>Open.

  • How do I use a music track as a ringtone on my C3

    I have music stored on my playlist that I want to use as a ringtone.  How do I this?
    Solved!
    Go to Solution.

    3 ways
    1- go to profiles scroll to ringtone and open gallery then select tone
    2- go to music player make sure you refresh it,the go to the tone select options and use tone.
    3- this was posted here by another user never tried it
    MENU - APPS - EXTRAS - NO NAME (Which is actually my memory card expansion) - MUSIC - (My particular music file) - OPTIONS - USE TONE
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • How do I use the same track multiple times in different playlists? I want to rename it multiple times.

    Hi, I am an entertainer that want rename a track a music a number of different ways so it will come up in playlist that work alphabeticly.
    for instance:
    Good Song I want to change to:
    A Good Song
    B Good Song
    C Good Song
    D Good Song
    So I can place them in different playlist and keep the order straight.
    Todd

    You can't give a single track multiple sets of properties, but if you want four copies of a song with different metadata then find the original and copy/paste it three times into the Automatically Add to iTunes folder, then edit the properties of each in turn.
    tt2

  • How can I use the sound track from a movie as background in the menu

    I have created a short movie in IMovie that I want to use in the IDVD menu and also want to use the soundtrack from that movie as the background for that menu.  Thus far, I have not found a way to make that happen.

    Extract the audio from the movie with either Quicktime Pro,  iMovie or a 3rd party audio editor like Amadeus Pro and use it as the menu's audio. 
    OT

  • How can I use Microsoft Office on two user accounts on one IMAc?

    Dear all,
    I have installed Microsoft Office 2011 on my IMac which I have recently bought. I did this on the (at that time) only user account in place: the administrator account.
    A little time after this my wife and I decided it would be much easier to us to make an additional user account on the same computer for my wife (also with administrator rights), so we could have our own settings, desktop preferences etc. So now we have two user accounts/profiles on one Imac, so far so good.
    But when my wife signs in on her account, she is not able to use Microsoft Office . Office seems to be only available to the user account on which it has been installed initially: 'my' account.
    Can anyone help us out here and tell us how we can make Office available to my wife's user account as well? I understand that the licence of Office is restricted to one computer, but what about two accounts on the same IMac? I mean, it is still one computer, one 'home', one family etc.
    We would appreciate your help here!
    Kind regards,
    Jurjen

    As long as you installed MS Office into its default location (the top level /Applications folder) it will be available to all user accounts on the Mac.
    As far as licensing is concerned you only have to enter the license code once, which you should do right after installing MS Office, in the same admin account you installed it from, by opening any one of the MS Office applications.  There is no additional licensing required for additional user accounts on the same Mac.
    Each user account is able to run the Office apps.  The only thing you will have to do is go through an initial setup screen in each user account (but this setup does NOT involve entering any additional license codes).
    You may have problems if you installed MS Office in a particular user account (i.e. NOT in the top level /Applications folder).

  • How do I use an Iphoto as my user icon??

    I would like to use a photo from Iphoto as my user icon.  Does anyone know how to change the picture?  I tried but i cant find an option to use a picture from Iphoto. 

    Where do you want to use the icon?  Here in the forum?  One must reach Level 3 before they can use custom icons. It's explained here: Apple Support Communities - Earn points, status levels and privileges
    OT

  • How can I use apps downloaded by different users on the same iPad?

    I have a 'work' iPad so the apps on it have been downloaded using two different accounts. Which was fine until I did an update at the weekend and suddenly I can only use the one's I downloaded. Is there anyway of 'sharing' these apps so who logs in can use all the apps?

    No, I don't think there is. As far as I know the iPad is meant to be a 'one per Apple ID' device...and isn't really meant to have multiple Apple ID's  downloading apps to a singular device.
    I think the simplest way around your issue is to use only one Apple ID to download everything.

  • How do I use a font that a user of my screen saver might not have?

    I am trying to do a little experiment with fonts. I downloaded a font that was not previously installed on my computer, and am trying to make a "Hello, World!" screen saver with that font(which I installed).
    The problem is that I can not even use that font. When I attempt to make a "Hello, World!" screen saver with that font, it uses the default font. Here's the code:
    #import "saverView.h"
    @implementation saverView
    - (id)initWithFrame:(NSRect)frame isPreview:(BOOL)isPreview
    self = [super initWithFrame:frame isPreview:isPreview];
    if (self) {
    [self setAnimationTimeInterval:1/30.0];
    //either my mistake is here:
    hylianFont = [NSFont fontWithName:@"Ancient Hylian - English" size:20];
    attrs = [NSMutableDictionary dictionaryWithCapacity:2];
    //NSForegroundColorAttributeName -- [Color green]
    [attrs setValue:[NSColor greenColor] forKey: NSForegroundColorAttributeName];
    // or it is here:
    [attrs setValue:hylianFont forKey: NSFontAttributeName];
    displayer = [[NSAttributedString alloc] initWithString:@"Hello, World!" attributes:attrs];
    return self;
    //... more stuff I do not use...
    //simply draws "Hello, World!" in green at the top right of the screen.
    //meant to draw it in the different font, but draws it in the standard font.
    - (void)animateOneFrame
    [displayer drawInRect:[self bounds]];
    return;
    @end
    Where did I mistype?

    I think I solved the problem. I just put the font and the screen saver in a pkg file, and make the pkg file install the font. Or I guess I could keep the font in my screen saver and test it that way. Either way, I found the answer.

  • How to NOT use address book image as user icon?

    Is it possible to not use my address book image as the user account icon in MacOS X?

    I have the same issue and did not find any work around...
    I use my address book on 2 machines (my macbook pro a@ work, my iMac @home).
    But I want to have my user access with another icon @work (actually,my company logo)...
    Despite removing it from the address book, it keeps on coming back...
    Any hint will be welcome...

Maybe you are looking for

  • Logical standby and truncate partition

    Hi, I'm evaluation whether a logical standby database would meet our needs. We have a live database and want a reporting database that is identical to the live one, just minutes behind in time to the live one, plus we want to create other summary tab

  • Macbook pro - battery not loading

    green light on for full battery, but battery status on screen 'x'. how can I fix this?

  • Computer Monitor Shadow CAD or CTI OS

    Running Contact Center Enterprise with CTI OS 7.5.10 I have gotten a few request from some of my call center suprvisors who want to remotly see what the agent is doing on their screen.  I know their are 3rd party apps such as bomgar that allow this.

  • First time user trying to set up new Mac pro, wireless mouse and wireless keyboard together?

    So  I just bought a new Mac Pro, wireless keyboard and mouse. i am a first time Mac user. How do I even get started......connect the wireless mouse and key board to the Mac Pro desktop to even get started??

  • Sign change in copying

    When I copy the data from one year to another the sign the of revenue accounts is allways inverted and shown. For example before copying if credit amount is 100$, aftercopying to another data source the signs are inverted and shown as credit(-100) .