Re: Why is a button in a window not redrawn when I change its state?

2011-07-05 Thread Ulf Dunkel
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

Re: Why is a button in a window not redrawn when I change its state?

2011-07-05 Thread Ulf Dunkel
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

Re: finder eject images

2011-07-05 Thread Ulf Dunkel
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)?

Re: finder eject images

2011-07-05 Thread Sherm Pendley
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,

Re: finder eject images

2011-07-05 Thread Patrick Robertson
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]

Re: finder eject images

2011-07-05 Thread Kyle Sluder
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]

[MEET] Toronto Cocoaheads / tacow - July 12

2011-07-05 Thread Karl Moskowski
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

Setting the Sent Actions in IB

2011-07-05 Thread ronald b. kopelman
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

Re: finder eject images

2011-07-05 Thread Patrick Robertson
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

Re: selected image in webview

2011-07-05 Thread Jens Alfke
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

Re: selected image in webview

2011-07-05 Thread Amy Heavey
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]

Re: selected image in webview

2011-07-05 Thread Jens Alfke
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

Re: finder eject images

2011-07-05 Thread Quincey Morris
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

PDF View with horizontal scroll

2011-07-05 Thread Fernando Aureliano
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

Re: How to resolve bulk warning Creating selector for nonexistent method ...?

2011-07-05 Thread Steve Christensen
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

Lion's Auto Save Versions

2011-07-05 Thread Brad Stone
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

Re: Lion's Auto Save Versions

2011-07-05 Thread Fritz Anderson
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

Re: How to resolve bulk warning Creating selector for nonexistent method ...?

2011-07-05 Thread arri
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

NSDatePicker weirdness with time.

2011-07-05 Thread Trygve Inda
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

Re: Setting the Sent Actions in IB

2011-07-05 Thread William Squires
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,

Re: NSDatePicker weirdness with time.

2011-07-05 Thread Raleigh Ledet
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

Method willPerformClientRedirectToURL: delay: fireDate: forFrame: not being called

2011-07-05 Thread Tito Ciuro
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

Re: Method willPerformClientRedirectToURL: delay: fireDate: forFrame: not being called

2011-07-05 Thread Tito Ciuro
Hello again, Partially solved: - (void)webView:(WebView *)sender didReceiveServerRedirectForProvisionalLoadForFrame:(WebFrame *)frame { NSLog(@didReceiveServerRedirectForProvisionalLoadForFrame detected: %@, sender); NSLog(@%@,frame

Re: finder eject images

2011-07-05 Thread Ken Ferry
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

iOS: AVFoundation, AVAssetWriter and caching

2011-07-05 Thread John Michael Zorko
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

QTMovie not playing in new window

2011-07-05 Thread Paolo Franzetti
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]

NSComboBox in NSTableView behaving strangely

2011-07-05 Thread Devarshi Kulshreshtha
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

Delay in reading cookie using NSHttpCookieStorage

2011-07-05 Thread Hirendra Rathor
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

Re: QTMovie not playing in new window

2011-07-05 Thread Kyle Sluder
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;

Re: NSDatePicker weirdness with time.

2011-07-05 Thread Trygve Inda
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