Re: How can a plug-in bundle get access to its own resources?

2009-11-17 Thread Alastair Houghton
On 17 Nov 2009, at 08:59, Motti Shneor wrote: First, to clear things, I'm not WRITING plug-ins. I'm transitioning our EXISTING product line from Carbon to Cocoa, to be able to run within 64bit Host applications (which, do not exist yet.). Within this scope, I contemplate the way to

Re: Creation date of Feb 14th 1946 - Why?

2009-11-17 Thread Matt Gough
Try duplicating a large file in Finder and do Get Info while it is copying. Matt On 16 Nov 2009, at 18:20:57, Knut Lorenzen wrote: Am 16.11.2009 um 18:16 schrieb Matt Gough: Can someone let me know if there is something magical about a file having its creation date set to:

Scanning

2009-11-17 Thread Tom Davie
I'm trying desperately to find where the API for scanning images is, I've found the Image Capture API on developer.apple.com, but I can't find a more recent version than one for 10.4, and none of the sample code compiles any more, worse the sample apps crash on launch. What should I be searching

[iPhone] customizing UIView animation run background color

2009-11-17 Thread Tharindu Madushanka
Hi I am using following method to flip between UIViews that have imageviews on it as background. When I animate the views. I could see white background color at animating time. Can I change this color. What I currently do is like this. [UIView beginAnimations:nil context:nil]; [UIView

Re: [iPhone] customizing UIView animation run background color

2009-11-17 Thread Luke the Hiesterman
self.view.backgroundColor = [UIColor blueColor]; //cause why not blue? Luke On Nov 17, 2009, at 7:32 AM, Tharindu Madushanka wrote: Hi I am using following method to flip between UIViews that have imageviews on it as background. When I animate the views. I could see white background

Re: [iPhone] customizing UIView animation run background color

2009-11-17 Thread Tharindu Madushanka
before animation I have set the background color but it did not work. Still it was white even I set it to black. it seems like color is not coming from self.view ?? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Scanning

2009-11-17 Thread Jean-Daniel Dupas
http://developer.apple.com/mac/library/samplecode/ScannerBrowser/ Le 17 nov. 2009 à 15:51, Tom Davie a écrit : I'm trying desperately to find where the API for scanning images is, I've found the Image Capture API on developer.apple.com, but I can't find a more recent version than one for

Re: Creation date of Feb 14th 1946 - Why?

2009-11-17 Thread Sean McBride
On 11/16/09 5:16 PM, Matt Gough said: Can someone let me know if there is something magical about a file having its creation date set to: 1946-02-14 08:34:56 + I am guessing it is a special flag used by Finder to let it know that a file is busy (since even after a restart a file with such a

Re: CALayer Transitions

2009-11-17 Thread Gordon Apple
Here's the current status. I seem to have everything working, partly due to you guys. Thanks. However, now having analyzed this thing to death, I'm filing a bug report. First a summary of the (extended) problem. The view is layer hosted. Its layer has a sublayer called content, which

Re: Scanning

2009-11-17 Thread Nick Zitzmann
On Nov 17, 2009, at 7:51 AM, Tom Davie wrote: I'm trying desperately to find where the API for scanning images is, I've found the Image Capture API on developer.apple.com, but I can't find a more recent version than one for 10.4, and none of the sample code compiles any more, worse the

addObserver:forKeyPath:options:context: memory management in GC

2009-11-17 Thread Sean McBride
Hi all, The docs for addObserver:forKeyPath:options:context: say Neither the receiver, nor anObserver, are retained.. They don't comment on the garbage collected case specifically. Does any know for sure? Does calling this method add a strong reference between the receiver and 'anObserver'?

Re: How to replace ComboBoxCell with TextFieldCell when not editing

2009-11-17 Thread Corbin Dunn
On Nov 16, 2009, at 9:25 PM, Symadept wrote: Hi, I want to replace the ComboBoxCell with TextFieldCell when I am not editing the cell and shall be replaced with ComboBoxCell when clicked on that particular cell. Any pointers highly appreciable. Use: - (NSCell *)tableView:(NSTableView

[Q] Expanded tooltips in Cocoa?

2009-11-17 Thread Eric Gorr
In carbon, you could define both default and expanded tooltips for views. I found this old thread: http://lists.apple.com/archives/cocoa-dev/2003/Aug/msg00591.html which indicated that expanded tooltips were not supported in Cocoa. In my hunting through the guides, I believe this is still

Re: [Q] Expanded tooltips in Cocoa?

2009-11-17 Thread Sean McBride
On 11/17/09 1:57 PM, Eric Gorr said: In carbon, you could define both default and expanded tooltips for views. I found this old thread: http://lists.apple.com/archives/cocoa-dev/2003/Aug/msg00591.html which indicated that expanded tooltips were not supported in Cocoa. In my hunting

Re: [Q] Expanded tooltips in Cocoa?

2009-11-17 Thread Eric Gorr
On Nov 17, 2009, at 2:20 PM, Sean McBride wrote: On 11/17/09 1:57 PM, Eric Gorr said: In carbon, you could define both default and expanded tooltips for views. I found this old thread: http://lists.apple.com/archives/cocoa-dev/2003/Aug/msg00591.html which indicated that expanded

Re: message to zombie NSWindowController

2009-11-17 Thread James Walker
James Walker wrote: When running on Tiger, my NSWindowController subclass that runs a modal preferences dialog gets a retain message after it has been deallocated. I can't reproduce this on Snow Leopard. The backtrace starts: #0 0x92cc5fb8 in -[_NSZombie retain] () #1 0x92c2f1cc in

Re: Where are the interface builder components?

2009-11-17 Thread Ricky Sharp
On Nov 16, 2009, at 9:28 PM, Sandro Noël wrote: I guess i'll have to make my own. I just find it sad to have to duplicate work, it's unproductive. True, but keep in mind the amount of effort that Apple would need to do if they provided the custom control, etc: * Must work with localized

API for Open Directory domain?

2009-11-17 Thread Glen Low
Hi All I know you can retrieve the user name via NSUserName(). Is there an equivalent API for the user's Open Directory/Kerberos etc. domain? I'm after the equivalent of the Windows domain, where a USER in a DOMAIN comes out like DOMAIN\USER. Cheers, Glen Low --- pixelglow software

Re: API for Open Directory domain?

2009-11-17 Thread Kyle Sluder
On Tue, Nov 17, 2009 at 2:21 PM, Glen Low glen@pixelglow.com wrote: I know you can retrieve the user name via NSUserName(). Is there an equivalent API for the user's Open Directory/Kerberos etc. domain? I'm after the equivalent of the Windows domain, where a USER in a DOMAIN comes out like

Re: How to stop NSScrollView from scrolling to top when horizontally resizing contained NSTextView?

2009-11-17 Thread Lyndsey Ferguson
On Tue, Nov 17, 2009 at 11:28 AM, Ross Carter rosscarter...@me.com wrote: On Nov 16, 2009, at 4:33 PM, Lyndsey Ferguson wrote: I'm not sure exactly what you are trying to do, but it looks to me like you might be on the wrong track. Again, forgive me if I have misunderstood, which I often do,

Re: [iPhone] customizing UIView animation run background color

2009-11-17 Thread Tharindu Madushanka
This is the method I use to switch views. And my views are created with Interface Builder - (IBAction)switchViews { self.view.backgroundColor = [UIColor blackColor]; [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1.25]; [UIView setAnimationCurve:

Re: [iPhone] customizing UIView animation run background color

2009-11-17 Thread Tharindu Madushanka
ah Thanks :) self.view.window.backgroundColor worked but I did not try superview thing. Thank you -Tharindu ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: How to make single-row IKImageBrowserView?

2009-11-17 Thread Ashley Clark
On Nov 10, 2009, at 4:55 PM, John Fox wrote: Hello Nice Cocoa People: I'd like to be able to create an IKImageBrowserView that only displays a single row of items that scrolls horizontally as needed. I didn't find any public API for doing this, even though (from what I understand at

Re: API for Open Directory domain?

2009-11-17 Thread Glen Low
On 18/11/2009, at 6:34 AM, Kyle Sluder wrote: On Tue, Nov 17, 2009 at 2:21 PM, Glen Low glen@pixelglow.com wrote: I know you can retrieve the user name via NSUserName(). Is there an equivalent API for the user's Open Directory/Kerberos etc. domain? I'm after the equivalent of the

Core Data derived property not recognized after save reopen

2009-11-17 Thread David Catmull
I have an entity with a date property, and derived properties year and month (by having year/month methods in my NSManagedObject subclass). In a couple of different places, I fetch the entries from a particular year or month- the fetch requests's predicate says year == 2009. This works fine

Re: How to stop NSScrollView from scrolling to top when horizontally resizing contained NSTextView?

2009-11-17 Thread Ross Carter
Fundamentally, I want to: 1. Display lines of text that don't wrap in my NSTextView. 2. Display a horizontal scrollbar. 3. Make sure that the width of the NSTextView is appropriately wide for that line of text so that: 3.1 The user can scroll the width of the longest line of text and no

Vector images on Cocoa

2009-11-17 Thread Henri Häkkinen
Hello. I would need some way of loading vectorized images from files and drawing them to my custom NSView derived class, scaled up or down according to the frame of the control. I was thinking of using SVG files but there seems not to be any easy way of handling them in Cocoa and I feel that

firstResponder KVO snow leopard crash; bug?

2009-11-17 Thread Aaron Clarke
We have an application that runs fine on leopard (10.5) but occasionally crashes on snow leopard (10.6) when closing an NSWindow. Here is the backtrace for the crash: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x

problem to connect network

2009-11-17 Thread 郭一波
I have an app in data card using the apple sample code MoreSCF and DIAL to create a link and connect to network. Now, I meet some problems, 1. I used the MoreSCF to create a dialup set which configuared with dial number, user name, password; but the customer said that

Help needed in Writing network usage monitor application

2009-11-17 Thread Aashishk Tiwari
Hi All, We are developing a network usage monitor cocoa application that should be able to log what urls user is visiting, what streaming media being played, what url is open in which browsers etc. We need to get notified when any new url is visited or etc. What APIs/library/Technology we

Re: Vector images on Cocoa

2009-11-17 Thread Jens Alfke
PDF is the standard vector format. NSImage supports loading and drawing it. --Jens {via iPhone} On Nov 17, 2009, at 1:47 AM, Henri Häkkinen hen...@henuxsoft.com wrote: Hello. I would need some way of loading vectorized images from files and drawing them to my custom NSView derived

Re: Vector images on Cocoa

2009-11-17 Thread Gideon King
WebKit has experimental SVG support (http://webkit.org/projects/svg/index.html), but I haven't tried it. I have been successfully using PDF vector images, which are pretty much the recommended standard format. We have also used EPS images, but found that occasionally people have crasher

Re: Custom background in NSTableHeaderView

2009-11-17 Thread Kiran Kumar S
Hi, CellAttributes are used by button and button cell for displaying image and text accordingly, but tableHeaderCell doesn't uses these attributes for displaying image and text.. Customize the NSTableHeaderCell and draw the image and text in drawWithFrame method. Thanks SKiranKumar