DataSource for NSTableView with ButtonCell

2008-04-01 Thread Thomas Bartelmess
Hello List, i've created a NSTableview with Interface Builder. In one of my Collums is a NSButton. I've no idea how to set up the DataSource for this. Can anyone help me? Thanks a lot Thomas Bartelmess [EMAIL PROTECTED] Lesen Sie Ihre E-Mails auf dem Handy. www.yahoo.de/go _

NSWindow z-depth

2008-04-01 Thread Mike R. Manzano
Is there a way to get a window's z-depth in relation to my app's other windows? Mike ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-adm

Accessing a windows share

2008-04-01 Thread Valentin Dan
Hi, Same question with a new spin :) ... How can I access (from Cocoa, Objective-C code) a path like : \\192.1.1.1\c$\SomeDir\AnotherOne\SomePicture.jpg ? I need to load that picture in a table view, so I need the NSData object and the connection should be able to authenticate (perhaps a NSU

Re: [NSPipe pipe] returning nil (running out of filehandles?)

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 4:53 PM, Martin Redington wrote: You'd kind of hope that NSTask would clean up in its dealloc method, but apparently not. But you're not (and shouldn't be) calling -dealloc, you're calling - release. My guess is that the NSTask retains itself while the process is running,

Re: Fixing my massive memory leak with NSImage/CALayer

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 7:47 PM, Nathan Vander Wilt wrote: Looks like I'll have to design a smarter architecture to keep the right images in memory at the right time. IKImageBrowserView (new in 10.5) pretty much does this for you. If its look and feel are compatible with what you're doing (it's n

Re: HUD panel is deallocating itself after close

2008-04-01 Thread Sam Krishna
Hey Jon, Thanks... I literally figured that out 90 seconds before you emailed me. :-D Sam On Apr 2, 2008, at 1:23 AM, Jonathan Hess wrote: Hey Sam - Uncheck 'release when closed' option in the IB inspector for your HUD window if it is checked. Good Luck - Jon Hess On Apr 1, 2008, at

Re: HUD panel is deallocating itself after close

2008-04-01 Thread Jonathan Hess
Hey Sam - Uncheck 'release when closed' option in the IB inspector for your HUD window if it is checked. Good Luck - Jon Hess On Apr 1, 2008, at 10:12 PM, Sam Krishna wrote: (Leopard 10.2.5, x86) As a simple project, I'm trying to implement a HUD panel inside of the TextEdit codebase. T

HUD panel is deallocating itself after close

2008-04-01 Thread Sam Krishna
(Leopard 10.2.5, x86) As a simple project, I'm trying to implement a HUD panel inside of the TextEdit codebase. The HUD panel is in a separate nib ("HUD.nib") that has it's own controller which is separate from the File's Owner class. I have two classes: (1) Launcher.[hm] --- this is the F

NSManagedObject data only shows up in view sometimes

2008-04-01 Thread Adam Gerson
I have a classic NSTreeController / NSOutlineView situation. The TreeController has a SortDescriptor on it. I am programatically adding a leaf node to a group node. It does not appear in the OutlineView when I first add it. When I inspect the CoreData .xml file the leaf node is there and it appears

activate my application while dragging on other application window

2008-04-01 Thread Apparao Mulpuri
I want to activate my application while dragging on other application window?. Is it implementable in Cocoa? - Apparao. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Fixing my massive memory leak with NSImage/CALayer

2008-04-01 Thread Nathan Vander Wilt
On Apr 1, 2008, at 4:24 PM, Jens Alfke wrote: On 1 Apr '08, at 11:07 AM, Nathan Vander Wilt wrote: The NSImage that my FRPhoto holds on to should have "invalidate[d] and free[d] the offscreen caches of all image representations". That doesn't mean the image representations themselves are flu

Re: Finding out about new windows.

2008-04-01 Thread Paul FitzGerald
Thanks Rob. I thought I looked through all the window notifications. Maybe I just overlooked this. I'll try. This really is a stop-gap measure. I want to be implementing the drawing of all the dialogs myself but need to get this out with a reasonable solution in the mean time. Paul On Ap

Deletion+processPendingChanges+transient attributes

2008-04-01 Thread Quincey Morris
I was surprised to see a Core Data object throw an exception during 'processPendingChanges' because the object couldn't handle 'setValue:nil forKey:'. AFAICT, this happened under the following conditions: -- the object had been inserted into the managed object context -- the object had then

Re: Need for a creator code?

2008-04-01 Thread Dave Sopchak
Ah, a subject near and dear to my heart. I agree with Rainer, UTIs can be deduced from file types, extensions and file creators, but I would sure like it if one could set a UTI for a document and have this take care of things, not the other way around. Also, it certainly seems that UTIs do

Re: Southern California Coders?

2008-04-01 Thread Scott Ellsworth
On Tue, Apr 1, 2008 at 3:23 PM, Casey Becking <[EMAIL PROTECTED]> wrote: > Sorry to take any ones time if this has been discussed before. I was curious > if there was any group meeting for Southern California coders to get > together? I run the Lake Forest chapter of Cocoaheads - our next meetin

(SOLVED?) Re: yearly NSDraggingInfo -draggedImage question

2008-04-01 Thread Nathan Vander Wilt
On Mar 21, 2008, at 10:47 AM, Sherm Pendley wrote: Well, the glib answer is that it returns whatever the dragging source passed as the first argument to - dragImage:at:offset:event:pasteboard:source:slideBack:. Seriously though, I can't explain what you're seeing, but I can duplicate it

Re: Is there a Source List control in Cocoa

2008-04-01 Thread Markus Spoettl
On Apr 1, 2008, at 5:57 PM, Rob Keniger wrote: http://developer.apple.com/samplecode/SourceView Excellent, thanks Rob! Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Re: Is there a Source List control in Cocoa

2008-04-01 Thread Markus Spoettl
On Apr 1, 2008, at 5:50 PM, Rob Napier wrote: It won't exactly match Mail or iTunes, but the new Leopard way of doing what you're talking about is to use an NSTableView or NSOutlineView and call: [tableView setSelectionHighlightStyle:NSTableViewSelectionHighlightStyleSurceList ] Gre

Re: Is there a Source List control in Cocoa

2008-04-01 Thread Rob Keniger
On 02/04/2008, at 10:45 AM, Markus Spoettl wrote: I'm new to all things Cocoa so please forgive me if this sounds stupid: I'm looking for a way to implement a Source List / Sidebar (like in Mail or iTunes)? Is there something that comes with Xcode 3 (on Leopard) or does one have to do th

Re: Is there a Source List control in Cocoa

2008-04-01 Thread Rob Napier
It won't exactly match Mail or iTunes, but the new Leopard way of doing what you're talking about is to use an NSTableView or NSOutlineView and call: [tableView setSelectionHighlightStyle:NSTableViewSelectionHighlightStyleSurceList] -Rob On Tue, Apr 1, 2008 at 8:45 PM, Markus Spoettl < [EMAIL

Re: KVO question on Tree Controllers

2008-04-01 Thread Rob Keniger
On 02/04/2008, at 5:11 AM, Jeff LaMarche wrote: I've also tried using @"selectedObjects" rather than @"selection". Now this notifies me when the selection changes, except it doesn't notify me if the user clicked somewhere resulting in an empty selection, nor when the selection is currently

Re: Finding out about new windows.

2008-04-01 Thread Rob Napier
You can get what you're looking for by observing NSWindowDidBecomeKeyNotification or several of the others. Look at the Notifications section at the bottom of NSWindow's documentation. Should be something like [[NSNotificationCenter defaultCenter] addObserver:self selector:... name:NSWindowDidBeco

Re: test if another app has hung

2008-04-01 Thread has
Martin Redington wrote: There were some AppleScript based approaches, but they all seemed to involve activating the app ... Shouldn't do, as long as you check to see if the application is running first. That said, you may not want to use AppleScript itself as it has issues running in back

Is there a Source List control in Cocoa

2008-04-01 Thread Markus Spoettl
Hello, I'm new to all things Cocoa so please forgive me if this sounds stupid: I'm looking for a way to implement a Source List / Sidebar (like in Mail or iTunes)? Is there something that comes with Xcode 3 (on Leopard) or does one have to do this by hand? Any pointers much appreciate

Re: Finding out about new windows.

2008-04-01 Thread Ricky Sharp
On Apr 1, 2008, at 7:27 PM, Paul FitzGerald wrote: Thanks Ricky, Kyle and Rob. I do appreciate your comments, but none of this addresses my question. I started working from TN2062 several months ago and only after a ton of research and experimentation found that this alone does not meet my

Re: PDF file in NSTextAttachment

2008-04-01 Thread Martin Wierschin
I create a file wrapper from a pdf image on disk and insert it into my textstorage, with no problem, which draws fine on screen but then when I want to print the document it draws the image at low resolution. This is a bug that was introduced in Leopard that affects PDF and EPS images. I

Re: Finding out about new windows.

2008-04-01 Thread Paul FitzGerald
Thanks Ricky, Kyle and Rob. I do appreciate your comments, but none of this addresses my question. I started working from TN2062 several months ago and only after a ton of research and experimentation found that this alone does not meet my needs (for reasons I won't get into here). I do, in f

Problems with custom NSScrollView/ NSTableView

2008-04-01 Thread mike woodworth
Hey all, I've made a whole set of custom controls, including custom NSScrollers, a NSScrollVIew to use them in, and an NSTableView based off these. What I can't figure out is my table is set to show Scrollers when needed, but when they appear, I get a white corner where the two Scroller

Re: [NSPipe pipe] returning nil (running out of filehandles?)

2008-04-01 Thread Jerry Krinock
On 2008 Apr, 01, at 16:53, Martin Redington wrote: I'm still in pre-optimisation mode right now, and I'll probably migrate to the openssl MD5 method in any case, but I'm interested to hear if there's any other reason apart from the above. The reason why you want to avoid NSTask whenever pos

Re: core data and sqlite db store problem

2008-04-01 Thread Adam Swift
On Mar 31, 2008, at 10:23 AM, Scott Guyer wrote: Thanks Jeff, That would explain it. Crikey...whole lotta Zs in the CD created SQLite schema. :) In XCode, there is an Design -> Data Model -> Import... menu item. It is looking to import an XML file of a particular format. Any point

Re: [NSPipe pipe] returning nil (running out of filehandles?)

2008-04-01 Thread Martin Redington
On 2 Apr 2008, at 00:46, Jean-Daniel Dupas wrote: Le 2 avr. 08 à 01:36, stephen joseph butler a écrit : On Tue, Apr 1, 2008 at 6:20 PM, Martin Redington <[EMAIL PROTECTED]> wrote: I'm running /sbin/md5 via an NSTask on a number of files (3,000 or so, with a new NSTask each time). This

Re: [NSPipe pipe] returning nil (running out of filehandles?)

2008-04-01 Thread John Stiles
I haven't experimented with CC_MD5, but we do have code which calculates MD5s (calculated via simple C code). Is CC_MD5 optimized e.g. using SSE or AltiVec? Should I expect to see a perf boost if I swapped in this code instead of our regular C code? Jean-Daniel Dupas wrote: Le 2 avr. 08 à 01

Re: KVO question on Tree Controllers

2008-04-01 Thread Adam Gerson
What is bound to your NSTreeController? If its something like an OutlineView you can have the delegate impliment outlineViewSelectionDidChange. I tested it in my app and it does get called when the OutlineView selection is changes to empty. Adam On Tue, Apr 1, 2008 at 3:11 PM, Jeff LaMarche <[EM

Re: Cocoa Tutoring in SF Bay Area

2008-04-01 Thread Joel Norvell
Hi Brad, Based on the description of your application, I think you'll find Brent Simmons' excellent XML-RPC Class for Cocoa helpful. And as Eric Wing pointed out, you can't go wrong with Cocoaheads and NSCoder Night! Sincerely, Joel http://ranchero.com/cocoa/xmlrpc/ ___

Re: [NSPipe pipe] returning nil (running out of filehandles?)

2008-04-01 Thread Martin Redington
On 2 Apr 2008, at 00:33, Jim Correia wrote: On Apr 1, 2008, at 7:19 PM, Martin Redington wrote: I'm running /sbin/md5 via an NSTask on a number of files (3,000 or so, with a new NSTask each time). I know the "unix way" is to string together small purpose built tools via pipes. But it s

Re: Finding out about new windows.

2008-04-01 Thread Ricky Sharp
On Apr 1, 2008, at 6:29 PM, Kyle Sluder wrote: I'm pretty sure this is no longer the recommended way to do a kiosk application. Instead, you can use SetSystemUIMode to hide the menubar and dock (or replace the Finder as the first app launched). TN2062 < http://developer.apple.com/technotes/tn

Re: Finding out about new windows.

2008-04-01 Thread Rob Napier
This is a good part of the solution. You also want to consider your window level. Rather than taking over the entire screen, move your window level up to NSModalPanelWindowLevel-1 and put a masking window at NSModalPanelWindowLevel-2. That way the modal dialog will pop up over your app. -Rob On T

Re: Need for a creator code?

2008-04-01 Thread Rainer Brockerhoff
At 15:21 -0700 01/04/08, [EMAIL PROTECTED] wrote: >From: Andrew Farmer <[EMAIL PROTECTED]> >References: <[EMAIL PROTECTED]> >In-Reply-To: <[EMAIL PROTECTED]> >Date: Tue, 1 Apr 2008 13:26:58 -0700 >Message-ID: <[EMAIL PROTECTED]> > >On 01 Apr 08, at 12:59, Marc Respass wrote: >>I haven't registered

Re: [NSPipe pipe] returning nil (running out of filehandles?)

2008-04-01 Thread Jean-Daniel Dupas
Le 2 avr. 08 à 01:36, stephen joseph butler a écrit : On Tue, Apr 1, 2008 at 6:20 PM, Martin Redington <[EMAIL PROTECTED] > wrote: I'm running /sbin/md5 via an NSTask on a number of files (3,000 or so, with a new NSTask each time). This would run a lot faster (and avoid fd issues) if you u

Re: Southern California Coders?

2008-04-01 Thread James Merkel
On Tue, 1 Apr 2008 15:23:40, Casey Becking wrote: Sorry to take any ones time if this has been discussed before. I was curious if there was any group meeting for Southern California coders to get together? Well, Southern California is a pretty big area. I have seen reference to Lake Forest

Re: Need for a creator code?

2008-04-01 Thread Jean-Daniel Dupas
Le 1 avr. 08 à 22:26, Andrew Farmer a écrit : On 01 Apr 08, at 12:59, Marc Respass wrote: I haven't registered for a creator code since System 7.5. Apple has information and registration page (http://developer.apple.com/datatype/index.html ) about it but no indication if it's actually still

Re: ERROR: __CFURLCache::StepSQLStatement

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 12:06 PM, Bill wrote: Is my app causing it to happen? If so, should I try and correct it? Or can I safely ignore it? IIRC, sqlite error 5 means the database is locked. I think the only way that could happen is if you have multiple copies of your app/ process running at

Re: [NSPipe pipe] returning nil (running out of filehandles?)

2008-04-01 Thread stephen joseph butler
On Tue, Apr 1, 2008 at 6:20 PM, Martin Redington <[EMAIL PROTECTED]> wrote: > I'm running /sbin/md5 via an NSTask on a number of files (3,000 or > so, with a new NSTask each time). This would run a lot faster (and avoid fd issues) if you used libcrypto. Try "man EVP_DigestInit" to get an idea of

Re: [NSPipe pipe] returning nil (running out of filehandles?)

2008-04-01 Thread Jim Correia
On Apr 1, 2008, at 7:19 PM, Martin Redington wrote: I'm running /sbin/md5 via an NSTask on a number of files (3,000 or so, with a new NSTask each time). I know the "unix way" is to string together small purpose built tools via pipes. But it strikes me that NSTask is the wrong hammer for t

Re: Finding out about new windows.

2008-04-01 Thread Kyle Sluder
I'm pretty sure this is no longer the recommended way to do a kiosk application. Instead, you can use SetSystemUIMode to hide the menubar and dock (or replace the Finder as the first app launched). TN2062 < http://developer.apple.com/technotes/tn2002/tn2062.html > has more information. --Kyle Sl

Re: Fixing my massive memory leak with NSImage/CALayer

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 11:07 AM, Nathan Vander Wilt wrote: The NSImage that my FRPhoto holds on to should have "invalidate[d] and free[d] the offscreen caches of all image representations". That doesn't mean the image representations themselves are flushed, though. They're still there, typically

Re: CoreAnimation with and manual animation...

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 3:54 PM, Jesse Grosjean wrote: What I'm doing now is something like this: [CATransaction begin]; [CATransaction setValue:[NSNumber numberWithFloat:0] forKey:kCATransactionAnimationDuration]; I was actually setting the kCATransactionDisableActions property instea

[NSPipe pipe] returning nil (running out of filehandles?)

2008-04-01 Thread Martin Redington
I'm running /sbin/md5 via an NSTask on a number of files (3,000 or so, with a new NSTask each time). This is on 10.4.11, with Xcode 2.4.1 My Debug and Release builds seem to be running out of filehandles, or something similar, as evidenced by the following symptoms: 1) [NSPipe pipe] star

[NSPipe pipe] returning nil (running out of filehandles?)

2008-04-01 Thread Martin Redington
I'm running /sbin/md5 via an NSTask on a number of files (3,000 or so, with a new NSTask each time). This is on 10.4.11, with Xcode 2.4.1 My Debug and Release builds seem to be running out of filehandles, or something similar, as evidenced by the following symptoms: 1) [NSPipe pipe] star

Re: CGDisplayReconfigurationCallBack

2008-04-01 Thread Jean-Daniel Dupas
As we are on the cocoa list, I assume you are using obj-c. If you are using plain C API in your code, you should not have problem. But if "// do stuff" contains some obj-c calls that can raise an exception, you have to make sure to catch it. void DisplayReconfigurationCallBack (CGDirectDispla

Re: test if another app has hung

2008-04-01 Thread John Stiles
I have a vague recollection that the mechanism used by Activity Monitor and friends is not public API, unfortunately. Martin Redington wrote: I went to check the referenced thread, as this is something I wanted to do occasionally, when I noticed that I was the OP for it. The discussion was

converting Carbon printing to Cocoa

2008-04-01 Thread Chinh Nguyen
My currently Carbon app can not only print the contents of a document in memory but also one from a disk without loading it. It does this by using PMSessionBeginDocument(), PMSessionBeginPage(), etc... and drawing each line of the document (in my own file format). When printing a file off

Re: iPhone Development: Any desktop-equiv frameworks to avoid?

2008-04-01 Thread Shawn Erickson
On Tue, Apr 1, 2008 at 3:34 PM, Frederick C. Lee <[EMAIL PROTECTED]> wrote: > Greetings: > This is just a cursory question from a neophyte. > > Are there any desktop-equivalent libraries/frameworks that are > detrimental to iPhone development? > For example AppKit vs UIKit; or any particular

Re: NSView out of memory problem

2008-04-01 Thread Graham Cox
As I said, it says nothing about how it's implemented. Chances are, it will avoid creation of an unnecessary NSBezierPath object, but relying on that being the case is folly. On 2 Apr 2008, at 2:23 am, Matthew Whillock wrote: The class reference has this to say about it: Strokes a line bet

Re: CoreAnimation with and manual animation...

2008-04-01 Thread Jesse Grosjean
Jens, Thanks for your reply. What I'm doing now is something like this: [CATransaction begin]; [CATransaction setValue:[NSNumber numberWithFloat:0] forKey:kCATransactionAnimationDuration]; for (CALayer *each in [rootLayer.sublayers copy]) {

Re: Need for a creator code?

2008-04-01 Thread has
Ricky Sharp wrote: I also know that you're still required to register a creator code for at least one other thing (cannot think of it now). Component Manager components use them for identification. Not that too many folks should need to write CM-based plugins these days; most will use the

Finding out about new windows.

2008-04-01 Thread Paul FitzGerald
I have a need to find a way for my application to find out when new windows are opened within it. The specific case I'm currently looking at is when the print dialog is opened and the user chooses "Save as PDF...". This action will open a file save dialog and I need to know when this happens.

DataSource for NSTableView with ButtonCell

2008-04-01 Thread Thomas Bartelmess
Hello List, i've created a NSTableview with Interface Builder. In one of my Collums is a NSButton. I've no idea how to set up the DataSource for this. Can anyone help me? Thanks a lot Thomas Bartelmess [EMAIL PROTECTED] ___ Cocoa-dev mailing l

iPhone Development: Any desktop-equiv frameworks to avoid?

2008-04-01 Thread Frederick C. Lee
Greetings: This is just a cursory question from a neophyte. Are there any desktop-equivalent libraries/frameworks that are detrimental to iPhone development? For example AppKit vs UIKit; or any particular libraries within the Foundation framework? Any opinions/discussion would further cl

Re: test if another app has hung

2008-04-01 Thread Martin Redington
I went to check the referenced thread, as this is something I wanted to do occasionally, when I noticed that I was the OP for it. The discussion was exhaustive, and veered OT at the end, but I'm not sure that I ever discerned how one would do this efficiently. This was probably the most i

Southern California Coders?

2008-04-01 Thread Casey Becking
Sorry to take any ones time if this has been discussed before. I was curious if there was any group meeting for Southern California coders to get together? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

Re: CoreAnimation with and manual animation...

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 10:44 AM, Jesse Grosjean wrote: n my app it seems like it would be simpler to just setup a timer and just directly update the ships position based on it's velocity for each time interval from my timer. I'd still want to use the built in core animation animations for other

Re: Cocoa Tutoring in SF Bay Area

2008-04-01 Thread E. Wing
Also, check out NSCoderNight. It is kind of an offshoot of CocoaHeads. It is a less formal thing where people just show up to work on their own projects. Usually people there can help you with questions. It meets every Tuesday. http://nscodernight.com/ If you're thinking about paid mentoring, I

Re: CGDisplayReconfigurationCallBack

2008-04-01 Thread Trygve Inda
What exactly would I put in here? It calls into my code with void DisplayReconfigurationCallBack (CGDirectDisplayID display, CGDisplayChangeSummaryFlags flags, void *userInfo) { if (flags & kCGDisplayAddFlag) { // do stuff } else if (flags & kCGDisplayRemoveFlag) {

Re: Need for a creator code?

2008-04-01 Thread Marc Respass
On Apr 1, 2008, at 4:26 PM, Andrew Farmer wrote: On 01 Apr 08, at 12:59, Marc Respass wrote: I haven't registered for a creator code since System 7.5. Apple has information and registration page (http://developer.apple.com/datatype/index.html ) about it but no indication if it's actually still

Re: Custom interface

2008-04-01 Thread glenn andreas
On Apr 1, 2008, at 3:45 PM, Ricky Sharp wrote: On Apr 1, 2008, at 10:13 AM, I. Savant wrote: Of course we don't know what the requirements are. You may have a perfectly valid reason but customizing AppKit might be a perfectly poor choice ... The best thing to do - as I said - is to explain

UTIs and CFBundleDocumentTypes

2008-04-01 Thread Rick Mann
I'm trying to use the editor you get when you get info on a target in Xcode to add support to my application to open files ending in ".gpx". I've added a second line to that editor with what I thought was the appropriate information. But I'm confused, because these lines create CFBundleDocu

Re: Custom interface

2008-04-01 Thread Ricky Sharp
On Apr 1, 2008, at 10:13 AM, I. Savant wrote: Of course we don't know what the requirements are. You may have a perfectly valid reason but customizing AppKit might be a perfectly poor choice ... The best thing to do - as I said - is to explain what you are trying to accomplish and why Cocoa U

[Meeting] Toronto Area Cocoa and WebObjects Developer Group - April 8

2008-04-01 Thread Karl Moskowski
The next meeting of tacow / Cocoaheads Toronto will be held on Tuesday, April 8 at 6:30 PM at Ryerson University. Apple's Steve Hayman will be talking about the iPhone SDK. More info and directions are available at . Thanks and see you there. Karl Moskowski <

Re: Need for a creator code?

2008-04-01 Thread Jeff LaMarche
On Apr 1, 2008, at 4:22 PM, Ricky Sharp wrote: Here's a FAQ, but it's kinda vague on the "why": Not only are they vague, they refer you to documents that are marked as "legacy". I was actually surprised to see they left creator codes in Xcod

Re: Need for a creator code?

2008-04-01 Thread Andrew Farmer
On 01 Apr 08, at 12:59, Marc Respass wrote: I haven't registered for a creator code since System 7.5. Apple has information and registration page (http://developer.apple.com/datatype/index.html ) about it but no indication if it's actually still required. Can anyone tell me if it is still req

Re: Need for a creator code?

2008-04-01 Thread Marc Respass
On Apr 1, 2008, at 4:22 PM, Ricky Sharp wrote: On Apr 1, 2008, at 2:59 PM, Marc Respass wrote: Hi All, I haven't registered for a creator code since System 7.5. Apple has information and registration page (http://developer.apple.com/datatype/index.html ) about it but no indication if it's

Re: Need for a creator code?

2008-04-01 Thread Ricky Sharp
On Apr 1, 2008, at 2:59 PM, Marc Respass wrote: Hi All, I haven't registered for a creator code since System 7.5. Apple has information and registration page (http://developer.apple.com/datatype/index.html ) about it but no indication if it's actually still required. Can anyone tell me if

Need for a creator code?

2008-04-01 Thread Marc Respass
Hi All, I haven't registered for a creator code since System 7.5. Apple has information and registration page (http://developer.apple.com/datatype/index.html ) about it but no indication if it's actually still required. Can anyone tell me if it is still required or maybe point me at the righ

Re: Alternating Button

2008-04-01 Thread Gerriet M. Denkmann
On 1 Apr 2008, at 18:16, Jean-Daniel Dupas wrote: I dont think there is an automatic way to have it (except for menu items), but you can have a look at the flagsChanged: method of NSResponder. Le 1 avr. 08 à 17:24, Gerriet M. Denkmann a écrit : The FindPanel in TextEdit has in the bottom

KVO question on Tree Controllers

2008-04-01 Thread Jeff LaMarche
I've registered to receive notifications from an NSTreeController instance loaded from a nib, like so: [treeController addObserver:self forKeyPath:@"selection" options:(NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld) context:NULL]; I've also tried using @"s

Re: ERROR: __CFURLCache::StepSQLStatement

2008-04-01 Thread Bill
On Apr 1, 2008, at 10:45 AM, Jens Alfke wrote: On 1 Apr '08, at 10:22 AM, Kimo wrote: ERROR: __CFURLCache::StepSQLStatement - step failed (exceed retry) - ErrCode: 5 That's an internal error from CFNetwork's URL cache (which happens to use a sqlite database.) Nothing to do with CoreData

Re: PDF file in NSTextAttachment

2008-04-01 Thread Douglas Davidson
On Apr 1, 2008, at 11:33 AM, [EMAIL PROTECTED] wrote: I am trying to add a pdf image to an NSTextAttachment. I create a file wrapper from a pdf image on disk and insert it into my textstorage, with no problem, which draws fine on screen but then when I want to print the document it draws t

PDF file in NSTextAttachment

2008-04-01 Thread fred . redcliffe
Dear all I am trying to add a pdf image to an NSTextAttachment. I create a file wrapper from a pdf image on disk and insert it into my textstorage, with no problem, which draws fine on screen but then when I want to print the document it draws the image at low resolution. Also when the tex

Re: Getting Localized System Strings

2008-04-01 Thread Gary L. Wade
> >Thanks a lot. I decided to use it like this: >NSBundle *appBundle = [ NSBundle bundleWithIdentifier: >@"com.apple.AppKit" ]; >NSString *localSetFont = [ appBundle localizedStringForKey: @"Set >Font" value: nil table: @"Undo"]; >Seems to work fine. > That's really not a good thing to do unle

Fixing my massive memory leak with NSImage/CALayer

2008-04-01 Thread Nathan Vander Wilt
I want to pop up photographs inside their own Core Animation layers, but I get huge real memory usage that never goes down. I have an FRPhoto class whose instances manage other metadata for the image, and also have a convenience method to get an NSImage* as follows: - (NSImage*)image {

Re: ERROR: __CFURLCache::StepSQLStatement

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 10:22 AM, Kimo wrote: ERROR: __CFURLCache::StepSQLStatement - step failed (exceed retry) - ErrCode: 5 That's an internal error from CFNetwork's URL cache (which happens to use a sqlite database.) Nothing to do with CoreData. —Jens smime.p7s Description: S/MIME cryptogra

CoreAnimation with and manual animation...

2008-04-01 Thread Jesse Grosjean
I'd like to create something like a spaceship with core animation. That is the object should be animated on screen, but it's velocity will always be changing. Because of this I'm not sure if using core animations build in animation system makes sense, because it seems like most of those ani

ERROR: __CFURLCache::StepSQLStatement

2008-04-01 Thread Kimo
I randomly get the following error message when using my Core Data app that uses a SQLite store: ERROR: __CFURLCache::StepSQLStatement - step failed (exceed retry) - ErrCode: 5 No exceptions are thrown, and nothing else (that I'm aware of) seems to be effected by this error. Does anyone

Re: Question on bitmap fonts

2008-04-01 Thread John Stiles
If it's rounding, that would be pretty severe. I'd expect at least 6 or 7 viable digits. Aki Inoue wrote: From the look of it, I think there is floating-point rounding involved. After all, the graphics system is treating it as a scalable font so the notion of bitmap (or pixel-based) font des

Re: Question on bitmap fonts

2008-04-01 Thread Aki Inoue
From the look of it, I think there is floating-point rounding involved. After all, the graphics system is treating it as a scalable font so the notion of bitmap (or pixel-based) font design doesn't apply. Aki On 2008/04/01, at 9:48, Tobia Conforto wrote: Thank you! I hadn't thought of usin

Re: Question on bitmap fonts

2008-04-01 Thread Tobia Conforto
Thank you! I hadn't thought of using gdb :-) Now I only need to understand why y = -2.6643 instead of -2.6651 Tobia On 1 Apr 2008, at 18:36, Aki Inoue wrote: This is the information returned from the font. (gdb) p glyphBBox $30 = { origin = { x = 0, y = -2.6643 }, size

Re: Alternating Button

2008-04-01 Thread Jean-Daniel Dupas
Sorry for the previous unfinished message. I dont think there is an automatic way to have it (except for menu items), but you can have a look at the flagsChanged: method of NSResponder. Le 1 avr. 08 à 17:24, Gerriet M. Denkmann a écrit : The FindPanel in TextEdit has in the bottom left cor

Re: Alternating Button

2008-04-01 Thread Jean-Daniel Dupas
I dont think there is an automatic way to have it (except for menu), but you can have a look at the flagsChanged: event Le 1 avr. 08 à 17:24, Gerriet M. Denkmann a écrit : The FindPanel in TextEdit has in the bottom left corner a button "Replace All" which changes to "In Selection" when the

Re: Using UNCs with NSURLConnection

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 8:42 AM, Valentin Dan wrote: I’d like to know if there’s any way to use a UNC path with a NSURLConnection object ? Can the UNC perhaps be transformed in a NSURL ? I had to look up UNC on Wikipedia; I think what you're talking about is a type of path string used on Window

Re: Network notifications

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 8:25 AM, Randall Meadows wrote: If they're updating every second, then yes, TXT records would be inappropriate. But Randall didn't say whether the updates were that frequent. I would expect maybe 5-10 over a 2-3 minute period, and then a downtime of about the same; lathe

Re: Best Way to Replicate CURL in Cocoa?

2008-04-01 Thread Brad Gibbs
Thanks for the reply. On Apr 1, 2008, at 8:51 AM, Jens Alfke wrote: On 1 Apr '08, at 5:39 AM, Brad Gibbs wrote: Given this, I'm suspecting it responds to HTTP Posts, rather than XML-RPC or SOAP requests. But both those protocols do use HTTP POSTs. (XML-RPC can use alternate transports

Re: Best Way to Replicate CURL in Cocoa?

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 5:39 AM, Brad Gibbs wrote: Given this, I'm suspecting it responds to HTTP Posts, rather than XML-RPC or SOAP requests. But both those protocols do use HTTP POSTs. (XML-RPC can use alternate transports, but in practice it's almost always over HTTP.) I've seen references t

Using UNCs with NSURLConnection

2008-04-01 Thread Valentin Dan
Hi, I’d like to know if there’s any way to use a UNC path with a NSURLConnection object ? Can the UNC perhaps be transformed in a NSURL ? Or is there another way to get a remote file from a server that requires authentication if I only have the file’s UNC ? Thanks ! __

Re: NSView out of memory problem

2008-04-01 Thread Andre Schnoor
p1 = [NSBezierPath bezierPath] ; [p1 moveToPoint: linebottom] ; [p1 lineToPoint: linetop] ; [p1 stroke] ; You could keep a permanent bezier path at a convenient location (e.g. your view) and empty it instead of releasing it. This worked fine for my app: [localPath re

Alternating Button

2008-04-01 Thread Gerriet M. Denkmann
The FindPanel in TextEdit has in the bottom left corner a button "Replace All" which changes to "In Selection" when the ⌥-key is pressed. How is this done? I want to have such a changing button in some of my own panels. Kind regards, Gerriet.

Re: Network notifications

2008-04-01 Thread Randall Meadows
On Apr 1, 2008, at 9:13 AM, Jens Alfke wrote: On 1 Apr '08, at 1:35 AM, Hamish Allan wrote: I disagree. If the updates are frequent, this makes a lot of work for every other machine on the LAN to update their mDNSResponder caches. If they're updating every second, then yes, TXT records would

Re: NSView out of memory problem

2008-04-01 Thread Matthew Whillock
The class reference has this to say about it: Strokes a line between two points using the current stroke color and the default drawing attributes. + (void)strokeLineFromPoint:(NSPoint)point1 toPoint:(NSPoint)point2 So it will just draw a line. Cheers, Matt Are you sure? This could be jus

Re: Custom interface

2008-04-01 Thread I. Savant
> Honestly I think most people don't appreciate how much stuff you get > "for free" in Cocoa, but you learn pretty fast when you get to > reimplement it yourself! :) True, but there are many legitimate reasons not to use a standard UI. FrontRow is a prime example of this. A kiosk application

Re: Network notifications

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 1:35 AM, Hamish Allan wrote: I disagree. If the updates are frequent, this makes a lot of work for every other machine on the LAN to update their mDNSResponder caches. If they're updating every second, then yes, TXT records would be inappropriate. But Randall didn't say whe

  1   2   >