Hi Jens.
This is the method in my AppDelegate.m which should update the button:
- (void)updateKillHelpdButton
{
[killHelpdButton setEnabled:[self checkHelpd]];
[killHelpdButton setNeedsDisplay:YES];
}
Can someone please tell me what else I should do to force the redraw?
That should work; in
PS: I am quite sure that there is no official API for what I am doing
here, so I fear there's no other nice way of checking if helpd has been
launched. I could get rid of this all if I'd cover the relevant button
in a sheet which isn't visible all the time, but I'd like to keep it in
the main
Hi Lee Ann.
Also I think Apple frowns on copying their icons into your apps. Only the ones
you can get through imageNamed: or iconForFileType: are fair game.
Wasn't it Steve Jobs who invited us to pick all their nice icons,
somewhen in the past when he introduced Leopard (or even Tiger)?
On Tue, Jul 5, 2011 at 6:53 AM, Ulf Dunkel dun...@calamus.net wrote:
Hi Lee Ann.
Also I think Apple frowns on copying their icons into your apps. Only the
ones you can get through imageNamed: or iconForFileType: are fair game.
Wasn't it Steve Jobs who invited us to pick all their nice icons,
Yes, but we're supposed to use them in-place, not copy them into our apps.
I wasn't suggesting that be done. Here's the code I use in my apps:
- (NSImage *)sysIconNamed:(NSString *)name {
NSString *path = [[NSBundle bundleWithPath:
@/System/Library/CoreServices/CoreTypes.bundle]
On Jul 5, 2011, at 5:20 AM, Patrick Robertson robertson.patr...@gmail.com
wrote:
I wasn't suggesting that be done. Here's the code I use in my apps:
- (NSImage *)sysIconNamed:(NSString *)name {
NSString *path = [[NSBundle bundleWithPath:
@/System/Library/CoreServices/CoreTypes.bundle]
tacow's next quarterly meeting is scheduled for 6:30 PM on Tuesday, July 12,
2011 in meeting room 309 of Metro Hall. The meeting will be preceded by a field
trip to the AppleExpo. Also, we have a $10 off coupon for AppViz 2.
More info at http://goo.gl/wsYZp.
All are welcome, and we look
Ok, I know I'm missing something simple here. I connect the Page
Setup menu item to the runPageLayout action in the First Responder get
nothing. If I hook up a random button to the same action, it displays just
fine. If I connect a new menu item, I still get nothing. If I connect the
This is extremely fragile. You have no guarantee this image will continue
to exist, that it will always be in ICNS format, or that the CoreTypes
bundle will even continue to exist.
True, but this method has been working for our app for 8 years now, no
problems :)
If you have any better
On Jul 4, 2011, at 10:55 PM, Amy Heavey wrote:
Is there a way to get the selected item in a webview?
I've got a webview in my app, and I'd like to select an image and download it.
On Mac OS you can use the DOM APIs. On iOS I think you have to run JavaScript
on the page — I don’t remember the
Thanks,
It is for Mac OS (coredata app), but all the documentation seems to
refer to Javascript?
I've got a webView *manWeb, and I use this to set the initial page to
display;
NSString *manWebString = [[Manufacturers selection]
valueForKey:@manufacturerNewWeb];
[[manWeb mainFrame]
On Jul 5, 2011, at 10:38 AM, Amy Heavey wrote:
It is for Mac OS (coredata app), but all the documentation seems to refer to
Javascript?
It’s a cross-language API, but there are Objective-C bindings in WebKit. Read
the section Using the Document Object Model from Objective-C” in the WebKit
On Jul 5, 2011, at 07:34, Patrick Robertson wrote:
True, but this method has been working for our app for 8 years now, no
problems :)
If you have any better suggestions, feel free to let me know!
For those hoping to use the CoreTypes.bundle ICNS, I have not seen any of
them disappear or
Hi,
I'd like to get some tip about how implement a PDF View wich horizontal
scroll.
I know how implement a PDF reader using UIWebView, but just with vertically
scroll.
Thanks!
--
*Fernando Aureliano
*
___
Cocoa-dev mailing list
For the nonexistent method warnings, your project- or target-level settings
likely have Undeclared Selector checked in the GCC warnings section of the
build settings.
For the multiple selectors warnings, look at the Strict Selector Matching item
in the same section. It says this will pop up if
I'm testing my app in Lion with 4.1 and I'd like to play around with Auto Save
and Versions (http://developer.apple.com/technologies/mac/whats-new.html).
I've been through the documentation and I can't find anything new about how
this works.
Is there any documentation how we implement Auto
On 5 Jul 2011, at 3:24 PM, Brad Stone wrote:
Is there any documentation how we implement Auto Save and Versions? Is the
the same old autosave functionality that's been around for a while?
Second question, I have a Core Data document-based app so I've been running
under the assumption
Hi Steve,
Thanks for your reply! Usually i would be tempted to get to the bottom
of this and understand where/what mistakes were made (and by who;).
But other than switching between Debug/Release i hadn't touched the
build-settings at all, so i figured the problem couldn't be there..
But
In my app I have:
[NSTimeZone setDefaultTimeZone:[NSTimeZone
timeZoneWithAbbreviation:@GMT]];// So that when we decode NSDate
objects, we get the h/m/s as GMT
I also have an NSDatePicker set to only show the hh:mm
My system clock is set to US West Coast Time and US format.
When I
The view controller (or app delegate) should be the one to respond to the
'runPageLayout:' message, not the first responder!! Unless you've subclassed
one of the UI controls (to add the aforementioned runPageLayout: method), there
won't be any first responder that can receive that message,
Trygve,
That should work. I suspect that you are setting the timeZone of the
NSDatePicker as well. There is a bug, where is you set the NSDatePicker
timeZone but do not set the calendar, then you will run into this problem.
(Same thing with NSDatePicker locale.)
So, either don't adjust the
Hello,
I have a question regarding WebKit. The redirect sent by the server works fine
(gets displayed properly) but the following method is never invoked:
- (void)webView:(WebView *)sender willPerformClientRedirectToURL:(NSURL *)URL
delay:(NSTimeInterval)seconds fireDate:(NSDate *)date
Hello again,
Partially solved:
- (void)webView:(WebView *)sender
didReceiveServerRedirectForProvisionalLoadForFrame:(WebFrame *)frame
{
NSLog(@didReceiveServerRedirectForProvisionalLoadForFrame detected: %@,
sender);
NSLog(@%@,frame
On Tue, Jul 5, 2011 at 7:34 AM, Patrick Robertson
robertson.patr...@gmail.com wrote:
This is extremely fragile. You have no guarantee this image will continue
to exist, that it will always be in ICNS format, or that the CoreTypes
bundle will even continue to exist.
True, but this method
Hello, all ...
I'm interested in caching a movie as I play it from the internet, so that the
next time the user asks for the movie, it can play it from the device
filesystem. I'm thinking capturing frames and audio and using an AVAssetWriter
like I would when recording from the camera, but
I have a MAC OSX application in which I would like to press a button in
the main window and open a new window in which a movie is played. This
is my IBAction code;
Code:
- (IBAction) playButtonClicked: (id) sender
{
MoviePlayerController *moviePlayerWindow = [[MoviePlayerController alloc]
Hi All,
I am trying a sample application, which enlists some entities to purchase
and their respective cost.
In data model I created two entities:
1. Daily Transaction (Attribute: cost, Relationship: relatedEntity)
2. Entity (Attribute: name, Relationship: dailyTransactions)
Controls used in
I have written a Cocoa application that uses NSHttpCookieStorage class to read
cookie set in the Safari browser. I see that if the time gap between setting
the cookie by Safari and the application querying for the cookie is couple of
seconds, then the cookie returned by NSHttpCookieStorage is
On Mon, Jul 4, 2011 at 2:21 AM, Paolo Franzetti pa...@lambrate.inaf.it wrote:
- (IBAction) playButtonClicked: (id) sender
{
MoviePlayerController *moviePlayerWindow = [[MoviePlayerController alloc]
initWithWindowNibName:@MoviePlayer];
[moviePlayerWindow showWindow:self];
NSError *error;
Trygve,
That should work. I suspect that you are setting the timeZone of the
NSDatePicker as well. There is a bug, where is you set the NSDatePicker
timeZone but do not set the calendar, then you will run into this problem.
(Same thing with NSDatePicker locale.)
So, either don't adjust
30 matches
Mail list logo