Re: trouble closing windows

2008-02-23 Thread Kyle Sluder
On Sat, Feb 23, 2008 at 8:45 PM, Development [EMAIL PROTECTED] wrote: The unsaved chages dialog comes up first, then it runs the notification. Can some one point me the right way to trap this so it only runs my method? Implement -windowShouldClose: in your delegate. --Kyle Sluder

Re: NSStringFromClass versus className ?

2008-02-27 Thread Kyle Sluder
if the object is being KVO observed and has thus been isa-swizzled. --Kyle Sluder ___ 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-admins

Re: Custom cell with Bindings having strange prints in NSTableView

2008-02-28 Thread Kyle Sluder
]; Don't do this; you're wiping out the observed NSArray from underneath the column's feet (bindings are accomplished through KVO). You want to do this instead: [[self mutableArrayValueForKey:@downloads] addObject:download] --Kyle Sluder ___ Cocoa-dev

Re: Does performSelectorOnMainThread: preserve order?

2008-02-28 Thread Kyle Sluder
describes -[NSObject performSelectorOnMainThread:withObject:waitUntilDone:] as queueing and dequeueing selectors on the main thread. It seems reasonable to assume they're not outright lying to you. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev

Re: Getting the iCal window style?

2008-03-03 Thread Kyle Sluder
the AppKit release notes for Leopard. --Kyle Sluder ___ 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-admins(at)lists.apple.com Help

Re: Getting the iCal window style?

2008-03-03 Thread Kyle Sluder
On Mon, Mar 3, 2008 at 11:48 PM, Nick Zitzmann [EMAIL PROTECTED] wrote: However, it makes no difference. Did anyone get it to draw lighter this way, and if so, then what worked for you? You have made the window non-metal, correct? --Kyle Sluder

Re: Dis-Allowing Multiple Instances of an Application

2008-03-04 Thread Kyle Sluder
to lock some known resource (say, your app's bundle) and, if it fails, abort the app. But like I said, virtually no user will try to launch your app's binary from the command line, and if they do they'll most likely use open(1). --Kyle Sluder ___ Cocoa-dev

Re: Panel in framework

2008-03-04 Thread Kyle Sluder
library whose code is linked to from your executable. When the loader loads your executable, it resolves these links and loads the shared library as well. Resources such as windows, etc. operate on a much, much higher level than that. --Kyle Sluder

Re: Triggering GUI login session from daemon? And reboot.

2008-03-04 Thread Kyle Sluder
Have you checked out TN2063? http://developer.apple.com/technotes/tn2005/tn2083.html That document seems to indicate that you can't necessarily spawn a GUI session, but you can set up your job so it runs in the GUI bootstrap namespace. --Kyle Sluder

Re: Triggering GUI login session from daemon? And reboot.

2008-03-04 Thread Kyle Sluder
On Tue, Mar 4, 2008 at 10:04 PM, Kyle Sluder [EMAIL PROTECTED] wrote: Have you checked out TN2063? http://developer.apple.com/technotes/tn2005/tn2083.html And of course I meant TN2083. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev

Re: KVO autonotifying complaining about custom setter return value

2008-03-04 Thread Kyle Sluder
-automaticallyNotifiesObserversForKey: to return NO for the bindings key. --Kyle Sluder ___ 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-admins

Re: Panel in framework

2008-03-04 Thread Kyle Sluder
, and that's what I was trying to address. --Kyle Sluder ___ 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-admins(at)lists.apple.com Help/Unsubscribe

Re: Problem with NSSearchField in Apple's Core Data Tutorial

2008-03-04 Thread Kyle Sluder
of a framework. *Please* reconsider delving into Core Data as your first Cocoa technology. Get basic things working first, and don't move on to Core Data until you really grok it, particularly the ins and outs of bindings (and by extension, KVC/KVO). --Kyle Sluder

Re: large documents with doc based app

2008-03-05 Thread Kyle Sluder
, it would be rather useless if that was all it can do. Look into +[NSData dataWithContentsOfMappedFile:]. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Send an event to another app

2008-03-05 Thread Kyle Sluder
another application. --Kyle Sluder ___ 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-admins(at)lists.apple.com Help/Unsubscribe/Update your

Re: Using an auto incremented NSNumber as attribute in a NSManagedObject

2008-03-06 Thread Kyle Sluder
its @max in some ivar in a MOC subclass, and use that instead of the local static variable. Still a pain, but might do you what you want. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Post notification among several nib files?

2008-03-08 Thread Kyle Sluder
are required. Bindings are typically the easier way to go about this, but they do require your model objects to be KVO compliant. HTH, --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: IB3 Application vs File Owner

2008-03-08 Thread Kyle Sluder
implementation detail that they don't want to make part of the public contract. --Kyle Sluder ___ 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-admins

Re: [NSTableView/NSOutlineView] How can we draw a custom border?

2008-03-08 Thread Kyle Sluder
by sending a message to the NSScrollView's document view (I think it's -headerView). You could override this method in an NSOutlineView class to return an instance of your custom view. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: IB3 Application vs File Owner

2008-03-08 Thread Kyle Sluder
NSApplication is a singleton. But that doesn't mean that NSApp has to be the one that loads MainMenu.nib. Sure, it's convoluted and might not work, but that doesn't mean it's impossible under the runtime. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa

Re: Creating an NSSocketPort on an available port?

2008-03-11 Thread Kyle Sluder
socket's fd using -[NSSocketPort socket], and then use getsockname(2) to get at its sockaddr structure. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Setting the badgeValue in ToolbarItem in ViewController file.

2008-03-12 Thread Kyle Sluder
successfully, but for some reason i cant see on the screen the badgeValue. NSToolbarItem has no property named badgeValue. What are you trying to do? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Quit application when window closes

2008-03-12 Thread Kyle Sluder
System Preferences. Speaking of which, why is there a separate app for each print queue, and why don't they quit when I close their window... /grumble --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: get currently logging in users

2008-03-13 Thread Kyle Sluder
On Thu, Mar 13, 2008 at 9:11 PM, lazuardi [EMAIL PROTECTED] wrote: I hope to retrieve the whole list of users that currently logging in at the machine. who (and last) use wtmp and utmp. man utmp(5) for info on how you can access this information in your own programs. --Kyle Sluder

Re: Can core data save to a remote file?

2008-03-13 Thread Kyle Sluder
database solution. It is a persistent object store. If you want to store the persistent store on a remote server, mount the filesystem using WebDAV, AFP, SMB, NFS... --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Can core data save to a remote file?

2008-03-14 Thread Kyle Sluder
didn't think of is data modeling, especially relationships. That's definitely one thing about Core Data that does not depend on persistence, and I hereby concede that Core Data is not entirely about persistence. --Kyle Sluder ___ Cocoa-dev mailing list

Re: CustomView Help ...

2008-03-14 Thread Kyle Sluder
using a BOOL variable which gets updated in each of the drag operation methods. Can't you draw your string in either gray or white depending on this flag? I trust you're using the NSString drawing AppKit extensions, not an NSTextField subview. --Kyle Sluder

Re: CustomView Help ...

2008-03-14 Thread Kyle Sluder
/ApplicationKit/Classes/NSString_AppKitAdditions/Reference/Reference.html for documentation.) You want to use this in concert with -sizeWithAttributes: to draw the string centered in your view. HTH, --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev

Re: Simple question

2008-03-17 Thread Kyle Sluder
of language references. If you're gonna go used, make sure to get a white one (ANSI C), not a gray one (classic, or KR C, which is obsolete). --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: interface builder 3 question

2008-03-17 Thread Kyle Sluder
statement. The field you're looking for is on the Identity pane of the Inspector. --Kyle Sluder ___ 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

Re: Confused about CFRunLoop

2008-03-17 Thread Kyle Sluder
is create a scheduled timer, use +[NSTimer scheduledTimerWithTimeInterval:invocation:repeats:] or one of the other NSTimer class methods. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Confused about CFRunLoop

2008-03-17 Thread Kyle Sluder
the opportunity to process and dispatch those events. So you will need to create a timer (NSTimer or CFRunLoopTimerRef) and schedule it on the existing run loop in the modes you need. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: interface builder 3 question

2008-03-17 Thread Kyle Sluder
differences between IB2 and IB3. --Kyle Sluder ___ 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-admins(at)lists.apple.com Help/Unsubscribe/Update your

Re: Confused about CFRunLoop

2008-03-17 Thread Kyle Sluder
loops exit when all their input sources have been detached. All your events come in from the Window Server on an input source which is attached to your main run loop. *If you create your own run loop these events will never be dequeued, as the main run loop is waiting for yours to finish.* --Kyle

Re: Carbon Menu in Cocoa app

2008-03-18 Thread Kyle Sluder
with the NSView in NSMenu approach. Leave _NSGetCarbonMenu for Tiger only. Since the symbol is still defined on Leopard (even though it's giving you NULL) a simple if statement should suffice. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev

Re: How to add controller class to NIB file?

2008-03-19 Thread Kyle Sluder
File from within IB nothing happens and no error message is posted to the display. Did you try completing step 3, drag an object item into the MainMenu.nib window, like I told you? Nothing is supposed to visibly happen until you do this. --Kyle Sluder

Re: sheet appears as normal window?

2008-03-21 Thread Kyle Sluder
information. The system really is object-oriented, unlike, say MFC, which presents an object-oriented face to Win32. Cocoa is Cocoa internally and externally. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: dealloc methods not being called?

2008-03-21 Thread Kyle Sluder
retain cycles) and primitives. --Kyle Sluder ___ 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-admins(at)lists.apple.com Help/Unsubscribe

Re: Simple Out-of-Box Demo: Private Framework Crashes in 10.3.9

2008-03-21 Thread Kyle Sluder
--Kyle Sluder ___ 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-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http

Re: How to set default value for NSTextField from program before window is displayed?

2008-03-21 Thread Kyle Sluder
controller's selection key. --Kyle Sluder ___ 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-admins(at)lists.apple.com Help/Unsubscribe/Update your

Re: disabling NSButton?

2008-03-21 Thread Kyle Sluder
to believe that you're doing something in an inner loop or a special run loop mode which you perhaps shouldn't be doing. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Quickly remove contents from NSArrayController

2008-03-24 Thread Kyle Sluder
? Since it only makes sense in this case for your NSArrayController to be bound to an NSMutableArray (which I'm going to assume is a property on an NSDocument subclass for this example), why not use -[[myDocument mutableArrayValueForKey:@theKey] setArray:[NSArray array]]? --Kyle Sluder

Re: Perform selector on thread

2008-03-24 Thread Kyle Sluder
. --Kyle Sluder ___ 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-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http

Re: Best practice for overridden initializers in subclasses

2008-03-25 Thread Kyle Sluder
On Tue, Mar 25, 2008 at 6:01 PM, Andy Klepack [EMAIL PROTECTED] wrote: Anyone have a recommendation for the best practice in this case? Throw an exception. There's really nothing you can do at this point. --Kyle Sluder ___ Cocoa-dev mailing list

Re: Disabling NSTableView's text cell wrap-around tool tip?

2008-03-25 Thread Kyle Sluder
. Read the AppKit release notes at http://developer.apple.com/releasenotes/Cocoa/AppKit.html, specifically the section titled NSCell Automatic Expansion ToolTip Frame. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Is @constantstring pointer equal to @constantstring a guarantee?

2008-03-27 Thread Kyle Sluder
it for places where I expect arbitrarily-provided strings to be passed to my method, but I typically make my string constants opaque. Is this just in general a Bad Idea(TM)? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: NSDictionaryController and inserting new objects.

2008-03-31 Thread Kyle Sluder
else do you propose achieving what you desire? Your controller needs to spawn new objects on request. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: NSDictionaryController and inserting new objects.

2008-04-01 Thread Kyle Sluder
to override are things that Cocoa could not possibly do for itself (unless NSController were to accept a delegate). but even then, NSController does it all for you in Core Data entity mode, which is something that Ben Trumbull could do but most likely not you or I. --Kyle Sluder

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

Re: Scaling a window background image quickly

2008-04-06 Thread Kyle Sluder
that until the live resize is completed. --Kyle Sluder ___ 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-admins(at)lists.apple.com Help

Re: How do I embed a font in an app?

2008-04-06 Thread Kyle Sluder
On Sun, Apr 6, 2008 at 12:43 PM, Jens Alfke [EMAIL PROTECTED] wrote: FYI, Ben Stiglitz emailed me an even simpler solution that requires no code at all: Unfortunately the docs don't seem to mention if this is a Leopard-only key. Can someone confirm either way? --Kyle Sluder

Accessing Directory.app shared contacts

2008-04-11 Thread Kyle Sluder
collaboration features, but it looks like I'm going to be crawling LDAP servers to do so. Thanks, --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: Accessing Directory.app shared contacts

2008-04-14 Thread Kyle Sluder
used for these contacts is non-standard, and while trivial to deduce it's as always preferable to use a standardized approach to getting a task done. I sure hope there are plans for Address Book to see this information (and eventually merge/be supplanted by Directory.app). --Kyle Sluder

Re: Plugin Information

2008-04-14 Thread Kyle Sluder
bundleWithIdentifier:] to get it again elsewhere, then use -[NSBundle principalClass] to get its principal class. Then +alloc/-init as normal. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Window moved when dock appears.

2008-04-14 Thread Kyle Sluder
, especially when its resize widget is behind the dock. If you do have a good reason (which I can't think of), then try setting your window's level to be below that of a normal window, like 0, and see if that does the trick. --Kyle Sluder ___ Cocoa-dev

Re: Menu items vs modal sessions

2008-04-14 Thread Kyle Sluder
your menu item to this proxy object. In either case, file an enhancement request at http://bugreport.apple.com so that this situation can be fixed. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: hooking into another app

2008-04-14 Thread Kyle Sluder
. It is a very different beast from Windows. --Kyle Sluder ___ 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-admins(at)lists.apple.com Help/Unsubscribe

Re: Frameworks in bundles?

2008-04-15 Thread Kyle Sluder
(Application Support, its internal Plug-Ins directory, anywhere). See http://developer.apple.com/documentation/DeveloperTools/Conceptual/DynamicLibraries/Articles/DynamicLibraryDesignGuidelines.html#//apple_ref/doc/uid/TP40002013-SW21 for more details. --Kyle Sluder

Re: Weird build error

2008-04-17 Thread Kyle Sluder
GCC is alerting you to the fact that the switch at the end of the statement is unnecessary. If you really want to do something for all cases, use default. Otherwise just omit it. Using the empty statement (; by itself) will fool GCC, but an empty default case is useless. --Kyle Sluder

Re: Failure on unarchiving a NSBezierPath

2008-04-25 Thread Kyle Sluder
*outError to an NSError object (or nil if you're lazy) if you're going to return a value that signifies an error. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Failure on unarchiving a NSBezierPath

2008-04-28 Thread Kyle Sluder
itself is non-deterministic?). Again, I'm thinking of the general case, and in this situation there's no reason *not* to fix the known bug first. That's all I'm asking get done so that the number of safe debugging options increases. --Kyle Sluder

Re: Problems with Launchd Daemon

2008-04-28 Thread Kyle Sluder
the alternatives to perform the same activity. Read the Technote you have been linked to. Run an agent as a login item that communicates with your daemon which runs as a launchd daemon. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: autosizing problem

2008-04-29 Thread Kyle Sluder
views. --Kyle Sluder ___ 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-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription

Re: Problems with Launchd Daemon

2008-04-29 Thread Kyle Sluder
. --Kyle Sluder ___ 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-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http

Re: NSWindow With IB

2008-05-01 Thread Kyle Sluder
, set the class of the window to your custom class. At runtime, things should Just Work(TM). --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: drawing in a separate thread

2008-05-02 Thread Kyle Sluder
-performSelectorOnMainThread:withObject:waitUntilDone: to send the view a -setNeedsDisplay: message when after your thread has completed its drawing. Then the view can overwrite its own buffer with it. Be careful of synchronization issues, of course. HTH, --Kyle Sluder

Re: Interesting NSPathControl Behavior

2008-05-02 Thread Kyle Sluder
conjectures regarding a bug in NSPathControl. --Kyle Sluder ___ 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-admins(at)lists.apple.com Help/Unsubscribe

Re: Unit Test error XCode 3.1 (Beta)

2008-05-02 Thread Kyle Sluder
Xcode 3.1 is in beta and is therefore subject to NDA. The iPhone SDK is subject to NDA. This question has nothing to do with Cocoa. Perhaps you've posted to the wrong list? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Graphics seen when volume is modified.

2008-05-02 Thread Kyle Sluder
there's an unsupported way to do it, but I'm going to file a radar which asks that borderless HUD windows get the rounded corners. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Graphics seen when volume is modified.

2008-05-02 Thread Kyle Sluder
be beneficial to have a standardized bezel window style. --Kyle Sluder ___ 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-admins

Re: HTTP Headers

2008-05-03 Thread Kyle Sluder
On Sat, May 3, 2008 at 6:05 PM, Jeremy [EMAIL PROTECTED] wrote: So... Using [NSURLRequest HTTPBody]; will return what is returned. I don't see any way to build and send HTTP headers. NSMutableURLRequest has all of that. --Kyle Sluder ___ Cocoa

Re: Event loop in a secondary thread? Nibless Cocoa?

2008-05-03 Thread Kyle Sluder
them when my software isn't an app. PyObjC has special support for nib files. Not too familiar with it myself, but look into PyObjCTools.NibClassBuilder. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Newbie Question: Controls not redrawing on changes

2008-05-03 Thread Kyle Sluder
, entitled How Modal Windows Work, for more information. http://developer.apple.com/documentation/Cocoa/Conceptual/WinPanel/Concepts/UsingModalWindows.html#//apple_ref/doc/uid/2223 --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Newbie Question: Controls not redrawing on changes

2008-05-04 Thread Kyle Sluder
of NSApp that responds to -applicationDidFinishLaunching: and put your window creation code in there. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: method definition not in @implementation context

2008-05-05 Thread Kyle Sluder
On Mon, May 5, 2008 at 4:16 PM, J. Todd Slack [EMAIL PROTECTED] wrote: Can anyone tell me what this means? You put a method definition outside an @implementation block? All method definitions like -(void)foo:(id)bar have to be inside an @implementation ... @end block. --Kyle Sluder

Re: Quadratic curves in NSBezierPath

2008-05-08 Thread Kyle Sluder
On Thu, May 8, 2008 at 12:51 PM, Nick Zitzmann [EMAIL PROTECTED] wrote: I'm reading in a file format that uses only a single control point for curved edges. So create two control points for each one in your data file, just make them equal. --Kyle Sluder

Re: Did I reinvent the wheel?

2008-05-09 Thread Kyle Sluder
On Fri, May 9, 2008 at 4:34 PM, Western Botanicals [EMAIL PROTECTED] wrote: That is wierd, because Xcode hasn't given me any warnings. If Xcode could warn you about memory leaks they wouldn't really be the big issue they have been for decades. :) --Kyle Sluder

Re: Problem getting subclass of NSTextContainer working properly

2008-05-10 Thread Kyle Sluder
invoke your method on the remainder rectangle until it equals NSZeroRect. It's a standard greedy approach that should require no context. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Problem with CIFilters

2008-05-11 Thread Kyle Sluder
, but the result is still clipped to the original bounds. Are you applying any filters to the icons themselves? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Update slider position

2008-05-11 Thread Kyle Sluder
model and bind both the slider and text field to that keypath. No code required. --Kyle Sluder ___ 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

Re: Problems with object observing own key

2008-05-11 Thread Kyle Sluder
0x8208 in main at main.m:13 See stack frame #2? You should immediately have recognized that you have a memory management issue on your hands. You're failing to retain the object somewhere. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev

Re: wordRangeForRange implememtation

2008-05-11 Thread Kyle Sluder
On Sun, May 11, 2008 at 5:45 PM, Jérome Laurens [EMAIL PROTECTED] wrote: So I reimplemented my own NSScanner and it was way faster. Did you profile the application first to make sure that NSScanner was indeed the source of your slowdown? --Kyle Sluder

Re: @property question

2008-05-13 Thread Kyle Sluder
-mutableValueForKey: method to get a proxy NSMutableArray object. Otherwise, it has no idea that you have modified the array underneath its feet. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-15 Thread Kyle Sluder
, ideally including your program. And do this regardless of whether or not you think anyone else has done so already. If your bug gets marked as a dup, so be it; it lets the engineers know that this issue is affecting multiple users. --Kyle Sluder

Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-15 Thread Kyle Sluder
you're doing this in response to a menu item being selected, which means this will be happening in the run loop's event-tracking mode. Perhaps you should defer this to the next standard run of the run loop? --Kyle Sluder ___ Cocoa-dev mailing list

Re: NSDictionaryController with NSTableView and sorting of numeric data

2008-05-15 Thread Kyle Sluder
. The naive implementation would call super's implementation and return a sorted version of the result. The published interface says that -arrangedObjects returns id, but the documentation says that it returns an array, so I would feel reasonably safe treating the return value as an NSArray. --Kyle Sluder

Re: ButtonCell with Text in OutlineView

2008-05-15 Thread Kyle Sluder
. --Kyle Sluder ___ 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-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http

Re: Set view in bottom right corner of NSTableView

2008-05-16 Thread Kyle Sluder
in NSScrollView. Not impossible but not easy and this part of the AppKit does not work the same way between OS versions. Actually, it's not that hard. Subclass NSScrollView and override -tile. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev

Re: validateMenuItem() not always being called

2008-05-18 Thread Kyle Sluder
changed with Leopard). Good luck, and welcome to Cocoa! --Kyle Sluder ___ 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-admins

Re: validateMenuItem() not always being called

2008-05-18 Thread Kyle Sluder
. --Kyle Sluder ___ 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-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http

Re: load a Resource file template and search/replace a file

2008-05-19 Thread Kyle Sluder
the documentation on NSXMLParser. - tmp file ( I know how to do this part). Not sure why you need this at all. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Scrolling NSStatusBar

2008-05-21 Thread Kyle Sluder
. Make this view the contents of your NSStatusItem. --Kyle Sluder ___ 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-admins(at)lists.apple.com Help

Re: How to schedule an autonomous (SMTP/FAX) service.

2008-05-21 Thread Kyle Sluder
that exists outside an individual application, so the proper functionality for doing so is to create a launchd task. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Cocoa et al as HCI usability problem

2008-05-21 Thread Kyle Sluder
-reading the introductory, conceptual documentation until I get it, despite my decade of software development experience. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: removeFromSuperview, _registerDragTypesLater, and clean exits

2008-05-22 Thread Kyle Sluder
suggestions? * Is clean shutdown (at least with respect to NSWindow/NSView) just a lost cause? :) As Shawn Erickson mentioned, don't worry about it. You cannot, in the general case, assume that -dealloc will be called for all objects during termination. --Kyle Sluder

Re: inter process NSView sharing

2008-05-23 Thread Kyle Sluder
what you want to do the same way you have on Windows. You must refactor your application to compensate for the enhanced separation between processes on OS X. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: inter process NSView sharing

2008-05-23 Thread Kyle Sluder
processes can have to a window's content. This (-[NSWindow sharingType]) is new in Leopard, which is why I didn't know about it. I retract what I've said, though this question has come up in the recent past and people have made the same argument. --Kyle Sluder

Re: Query about Zip command

2008-05-23 Thread Kyle Sluder
), but for launching GUI apps, you should really use Launch Services. --Kyle Sluder ___ 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-admins(at)lists.apple.com

Re: Errors from NSTreeController (or NSOutlineView?)

2008-05-23 Thread Kyle Sluder
should be handling this so that the view is only getting unique objects. This may mean using some other class as your model representation. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Alert Sheets hard wired in Interface Builder

2008-05-27 Thread Kyle Sluder
is appropriately described in the Custom Sheets section of the Sheet Programming Topics for Cocoa guide: http://developer.apple.com/documentation/Cocoa/Conceptual/Sheets/Tasks/UsingCustomSheets.html#//apple_ref/doc/uid/20001290 --Kyle Sluder ___ Cocoa-dev mailing

  1   2   3   4   5   6   7   8   9   10   >