Re: xcode crashes on adding an embedded framework

2008-05-14 Thread j o a r
o, you should still file a formal bug report. Don't forget to include information about the version of Mac OS X and Xcode that you're using. Thanks, j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: window controller's [self window] not working

2008-05-14 Thread j o a r
nd XCode 3 until I modified it.) I am just getting used to IB3 but don't see what or how I could have broken the connection. Are there any obvious culprits? Double-check that the "window" property of the window controller (files owner) is connected to the window in

Re: validateMenuItem() not always being called

2008-05-18 Thread j o a r
On May 18, 2008, at 3:46 PM, Hal Mueller wrote: -validateMenuItem: is deprecated Really? Where is this documented? j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread j o a r
reat to have an influx of new people come with fresh ideas. Please file bug reports for any concrete problems you find or suggestions that you have: <http://developer.apple.com/bugreporter/> j o a r ___ Cocoa-dev mailing list (Coco

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread j o a r
isplay you should call -display, but you should only have to do this in exceptional situations. It is much more common to flag a control as needing to update display, in which case you would call -setNeedsDisplay:. In this case though, you shouldn't have to do either, as the call

Re: Cocoa et al as HCI usability problem

2008-05-21 Thread j o a r
to re-visit this discussion one to two years from now. I don't think that it's fair of us to expect you to provide an informed comparison before you have more experiences with both environments. Regards, j o a r ___ Cocoa-dev mailing lis

Re: Cocoa et al as HCI usability problem

2008-05-21 Thread j o a r
essage to this thread: We welcome input from new users to our platform. It's great to have an influx of new people come with fresh ideas. Please file bug reports for any concrete problems you find or suggestions that you have j o a r _

Re: Application rights.

2008-05-22 Thread j o a r
pple's installer: <http://developer.apple.com/documentation/DeveloperTools/Conceptual/PackageMakerUserGuide > <http://developer.apple.com/documentation/DeveloperTools/Conceptual/SoftwareDistribution > j o a r ___ Cocoa-dev mailin

Re: What is an id?

2008-05-22 Thread j o a r
if you're using a text cell, an image if you're using an image cell, and so on. The reason for using "id" here is to allow you to use any type of object value as the source of data for your cell to display. j o a r ___ Co

Re: NSString vs NSPathStore2

2008-05-22 Thread j o a r
ay to convert NSPathStore2 to an NSString? How do you determine that this is a problem? What is the problem? j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Conta

Re: How can i get current system time?

2008-05-30 Thread j o a r
set to the current date and time." j o a r ___ 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/Unsubscr

Re: super respondsToSelector

2008-05-31 Thread j o a r
. Why not simply: [[self superclass] instancesRespondToSelector:...] ? j o a r ___ 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-de

Re: KVO: I get called on change, but then can't get the object

2008-05-31 Thread j o a r
quot;, [inObject valueForKey: @"selection"]); dumps: selection: <_NSControllerObjectProxy: 0x177cb0> But if I change it to @"selection.number", it throws the exception: "[ valueForUndefinedKey:]: this class is not key value coding-compliant for the key

Re: super respondsToSelector

2008-05-31 Thread j o a r
d re-examine your design if you find that to be a problem in practice: <http://en.wikipedia.org/wiki/Code_smell> j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: NSArray

2008-06-01 Thread j o a r
ike a window controller. You would also typically set the data source in IB, and not in an action method. j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contac

Re: to use the default about panel

2008-06-01 Thread j o a r
On Jun 1, 2008, at 5:56 PM, Nick Rogers wrote: How can I make changes to the default "about panel"? Or do i have to add my own panel? Have a look at this technote: <http://developer.apple.com/technotes/tn2006/tn2179.html> j o a r __

Re: many-to-many relationships and retain cycles

2008-06-02 Thread j o a r
non-retaining array class or come up with another solution to this problem? Or is there anything in particular I should watch out for when subclassing NSMutableArray? If you're only targeting Leopard or later, you might want to take a look at "NSPointerArray&q

Re: many-to-many relationships and retain cycles

2008-06-02 Thread j o a r
the tip! It is pretty awesome. It was introduced together with the new NSMapTable and NSHashTable classes [*], primarily to support using Cocoa together with Garbage Collection. j o a r [*] Not to be confused with the older C-API with the same name _

Re: Best Practice for Returning Immutable Objects?

2008-06-03 Thread j o a r
ready immutable, this is typically cheap. See the "Copying Mutable Versus Immutable Objects" optimization here: <http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/ImplementCopy.html#//apple_ref/doc/uid/20000049-9

Re: Versioning MainMenu.nib

2008-06-04 Thread j o a r
load this debug menu from a nib file, but I would probably suggest that you just create and insert it programatically. See the API in NSApplication (for how to get a reference to the main menu), and the API in NSMenu & NSMenuItem (for how to create and insert the

Re: Where to start looking to fix hang?

2008-06-04 Thread j o a r
acktrace in the thread list. That would tell you where it's hanging. j o a r ___ 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)l

Re: Getting rid of specific "May not respond" messages

2008-06-05 Thread j o a r
In some instances, I've found that tracking down a header file and #importing it sometimes gets rid of the message, but not always (can't seem to get rid of the three shown here, ever.) These are all methods added in Mac OS X 10.5. Check the SDK settings for your target. j o a r __

Re: App hangs when displaying any sheet in 10.5 [SOLVED]

2008-06-06 Thread j o a r
.)" expression is found, while -Wselector only performs its checks in the final stage of compilation. This also enforces the coding style convention that methods and selectors must be declared before being used. j o a r ___ Cocoa-dev mailing

Re: IKImageBrowserView is bonkers

2008-06-06 Thread j o a r
e browser for performance reasons by default use an existing embedded thumbnail / preview to improve perceived performance. j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: Expanding Window/View

2008-06-09 Thread j o a r
See:NSCollectionView j o a r ___ 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 Subscri

Re: Updating a progress bar from a code loop

2008-06-09 Thread j o a r
gthy routine thread safe, and if so, run it on a background thread. You should put a lot of effort into always leaving the main thread open for user events. j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post adm

Re: Updating a progress bar from a code loop

2008-06-10 Thread j o a r
e safe", to invest your time in a multi-threaded implementation. j o a r ___ 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.app

Re: Garbage collector vs variable lifetime

2008-06-11 Thread j o a r
and, indeed, fraught with peril. Do you feel the same way about passing a (char *) to a method that takes a (const char *)? I think that it's perfectly reasonable to expect the receiver of the piece of data, or object, that you hand over to respect the basic restri

Re: NSOutlineView threading problem

2008-06-14 Thread j o a r
ation. j o a r ___ 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 Subscrip

Re: NSOutlineView threading problem

2008-06-16 Thread j o a r
e there are some operations on the NSView class that are thread safe, that doesn't mean that subclasses have even the same level of thread safety - unless explicitly called out in the documentation. j o a r ___ Cocoa-dev mailing list

Re: awakeFromNib

2008-06-16 Thread j o a r
#x27;d suggest that this is a design flaw that you should fix. The view objects in your application should not double as model objects - See: The MVC design pattern. j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not pos

Re: NSOutlineView threading problem

2008-06-16 Thread j o a r
documentation fix I'd suggest that you contact ADC and ask for an update. There might be some sort of misunderstanding: <http://developer.apple.com/contact/> j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: NSOutlineView threading problem

2008-06-16 Thread j o a r
till not thread safe, can be used from different threads - As long as they're only ever used from one thread at a single time. Et.c., et.c. The complexity of this topic makes it difficult to create the same type of documentation that we enjoy for the simple API r

Re: NSSound thread-safety?

2008-06-16 Thread j o a r
lay sound files asynchronously. j o a r ___ 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/Unsubscr

Re: Send Key Event to Focused Window

2008-06-18 Thread j o a r
<http://developer.apple.com/documentation/Carbon/Reference/QuartzEventServicesRef/Reference/reference.html > I assume that you've already familiarized yourself with the Accessibility APIs: <http://developer.apple.com/documentation/Cocoa/Conceptual/Accessibility/cocoaAXIntro/cocoaAXintro

Re: Send Key Event to Focused Window

2008-06-18 Thread j o a r
n/window? Can you explain what you mean by that? j o a r ___ 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.co

Re: Problem with NSWindow setFrame

2008-06-19 Thread j o a r
cally constrains itself to the screen." <http://developer.apple.com/documentation/Cocoa/Conceptual/WinPanel/Tasks/SizingPlacingWindows.html#//apple_ref/doc/uid/2228-135785 > j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Creating a Bundle via Code

2008-06-20 Thread j o a r
to have a bundle. You can just store the image data as files in the file system. I'm also curious as to why you decompress the JPEG file? If you got the image as a compressed JPEG, why not store it as is? j o a r ___ Cocoa-dev mailing

Re: Creating a Bundle via Code

2008-06-20 Thread j o a r
y the user? It sounds like you go from JPEG -> NSImage -> NSData? Instead of creating a NSImage, how about just storing the JPEG as is to the file system first, and only later generating NSImages as needed for display in your application

Re: Creating a Bundle via Code

2008-06-20 Thread j o a r
ggest that you intercept the drag operation and copy the file directly. You should be able to do this quite easily if you subclass the image view: <http://developer.apple.com/documentation/Cocoa/Conceptual/DragandDrop/DragandDrop.html

Re: How to prevent NSControl from graying out when sent to background?

2008-06-24 Thread j o a r
ppear "active" while actually being hosted by a background application. As such, the progress indicator in one of them is grayed out, how do I prevent it from doing that? Create a custom NSWindow / NSPanel subclass that overrides "- isKeyWindow" to alw

Re: Help getting custom cell layout in NSOutlineView column

2008-06-27 Thread j o a r
create a complex custom cell subclass: <http://developer.apple.com/samplecode/PhotoSearch/> j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact t

Re: Garbage Collection woes...

2008-06-29 Thread j o a r
ith Cocoa / Objective-C development in practice. Most Cocoa developers will find that Garbage Collection works absolutely fine, and that runtime performance is about the same (sometimes better, sometimes worse) compared with using manual memory management. j o a r ___

Re: Creating AppControllers in InterfaceBuilder 3.1

2008-06-30 Thread j o a r
uired though: Xcode and IB are now on better speaking terms, so you don't have to manually tell IB to read header files for it to learn about changes to classes in the project, it stays up to date automatically. j o a r ___ Coc

Re: Responder Chain and NSViewController in non-doc applications

2008-06-30 Thread j o a r
o the responder chain, in that case typically right after its view. But if my design explicitly specifies the target (connecting IBActions in InterfaceBuilder), I dont have to worry about the Responder chain for actions. Correct? Correct. j o a r ___

Re: Newbie question: Timers

2008-06-30 Thread j o a r
into? What is best? There is no way to do that in IB, you would have to set up the timer in code, but that's easy enough - Check the documentation for the NSTimer class. What are you going to use the timer for? There might be something else that would be better for you to use in Cocoa.

Re: Importing Xcode 2.x projects into Xcode 3

2008-07-08 Thread j o a r
think that would be considered a bug in IB 3, and not an expected side effect. If you can verify that this is the case, and in particular if you can reproduce the problem, you should file a bug report here: <http://developer.apple.com/bugreporter/> j

Re: Problem on reload data source of a table view

2008-07-15 Thread j o a r
- Using the "dataSource" property of the table view. At this point it sounds like a good thing to double-check that this connection is set up properly in IB. j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Problem on reload data source of a table view

2008-07-15 Thread j o a r
want to verify, at runtime, that this connection is set. You can do this either in the debugger, or just using a standard debug log statement. Btw.: Have you set up any bindings for this table view? j o a r ___ Cocoa-dev mailing list (Cocoa-dev

Re: Blue lines

2008-07-15 Thread j o a r
view (shouldn't be that hard), but interface builder manages to do it between objects that aren't connected by ANY view, and I am not sure how to do that. IB probably uses one or more separate transparent windows to hold the connection l

Re: Attributed string to an Image without window

2008-07-16 Thread j o a r
"daemon-safe frameworks": <http://developer.apple.com/technotes/tn2005/tn2083.html#SECLAYEREDFRAMEWORKS > j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to t

Re: just don't get it...

2008-07-17 Thread j o a r
t;main" and "key" window is in Cocoa). You could find that document like this: NSApp > Main Window > Window Controller > Document j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

Re: NSMutableDictionary autorelease chrashes application

2008-07-18 Thread j o a r
On Jul 18, 2008, at 11:51 AM, Andy Lee wrote: I don't see the difference from the caller's point of view. There isn't any, and that was not MMalcs point. His point was that you were using the term "autoreleased&quo

Re: observers removed?

2008-07-27 Thread j o a r
er is: "It depends". If you're using GC, you wouldn't have to remove the observer. If you're not using GC, you would. j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: IKSlideshow Question

2008-08-07 Thread j o a r
ly a bug - most likely a very well known bug. You might still want to file a bug report to indicate interest in getting this API fixed for some future release. j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post ad

Re: Get specified window from nib

2008-08-11 Thread j o a r
describe your application, and your use of nib files, it might be that we could provide some suggestions for cutting down on that number. j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: how to implement the auto-complement function like Xcode 3.x?

2008-08-13 Thread j o a r
one. Moreover, the Xcode-style of auto-implement is exactly what I want. This feature can improve the efficiency and productivity of users greatly. Have a look at the NSTextView "- textView:completions:forPartialWordRange:indexOfSelectedItem:" delegate method.

Re: @try @catch

2008-08-14 Thread j o a r
imply one, perhaps not even primarily one, of performance considerations. j o a r ___ 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-admi

Re: Clearing a Memory Buffer?

2008-08-18 Thread j o a r
eData API:s that might provide some / all of what you're looking for. j o a r ___ 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: Question about respondsToSelector

2008-08-18 Thread j o a r
tor:" (note the trailing ":"). j o a r ___ 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/Unsubs

Re: passing an object between views

2008-08-19 Thread j o a r
a look at this: <http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Tasks/masterdetail.html > j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: !foo vs foo == nil

2008-08-20 Thread j o a r
. There is a GCC warning to help you with that, but in addition, you can learn to type: if (nil == foo) Problem solved! :-) I personally much prefer to have if-statements that clearly evaluate to a boolean value. More intention revealing, and to me that's more im

Re: NSWindowController, owner, "primary window"...

2008-08-21 Thread j o a r
ation in this particular case. j o a r ___ 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/Unsubscr

Re: Undocumented Leopard support for overlapping sibling views

2008-08-28 Thread j o a r
w overlapping views are supported. Why isn't this documented? Can we rely on overlapping sibling views working now and in the future? Are there any caveats we should be aware of? Hello, Please file a couple of bug reports on this: <http://devel

Re: What to use observeValueForKeyPath: context

2008-08-29 Thread j o a r
kyClass KVO observer context". After all there's no penalty for being verbose in this case. Of course using a pointer to a global solves this too. The penalty for using constant strings is that they will end up wasting space in your binary... Rons suggestion

Re: Creating movie on background thread

2008-09-02 Thread j o a r
On Sep 2, 2008, at 12:55 AM, Roger Herikstad wrote: Since the Carbon stuff is not 64 bit Not correct: Some of it is, some of it isn't. Read the API reference documentation and release notes to figure out which is what. Besides, QTKit is a Cocoa framework. j

Re: Creating movie on background thread

2008-09-02 Thread j o a r
also allows control of the QTMovie idle state." <http://developer.apple.com/technotes/tn/tn2125.html> I'm not an expert on this - you might want to consult a QT specific mailing list for a definitive answer. j o a r __

Re: NSDate autorelease problem

2008-09-03 Thread j o a r
pplications based on the Application Kit, so your code normally does not have to deal with them." On threads that you set up, you have to manage the top level autorelease pool manually. j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.

Re: when should my NSWindowController be released?

2008-09-13 Thread j o a r
On Sep 13, 2008, at 1:43 PM, Markus Spoettl wrote: Not true, I can think of many scenarios where you have no other choice. Like what? Seth is right in general, app termination is very much a special case. j o a r ___ Cocoa-dev mailing list

Re: NSUInteger in for-loop?

2008-09-14 Thread j o a r
ntegerMax. This is how you print a NSUInteger: NSLog(@"NSUInteger: %lu", ((unsigned long)counter)); j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: How to create a new window initially zoomed to the maximal size?

2008-09-20 Thread j o a r
animation or flickering though. You would have to resize the window manually. To find out how to size and position it, ask NSScreen for the appropriate frame. To avoid flickering, do this in "awakeFromNib" or similar, before the window is put

Re: How to create a new window initially zoomed to the maximal size?

2008-09-20 Thread j o a r
On Sep 20, 2008, at 11:11 AM, Benjamin Stiglitz wrote: Alternatively, you can set its frame to [[window screen] defaultFrame], which is the same frame that -zoom: will use, subtracting space for any visible drawers. I think that should be: "-[NSScreen visibleFrame]"

Re: unrecognized selector sent to instance

2008-09-26 Thread j o a r
P. And if I move those methods into the main implementation of the class, it all works out. Any idea why is that? Thanks for your help. BR, Pan Perhaps a memory management error somewhere? Try to run your app with NSZombieEnabled (Google for the details) and see

Re: [NSCFNumber intValue]: unrecognized selector

2008-09-26 Thread j o a r
rive UI updates based on KVO notifications from non-main threads. Could this be your problem? j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mod

Re: sending email with attachement from cocoa

2008-09-26 Thread j o a r
that all users are running the same email client. There are some third party attempts at solving this problem -> Google. j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: [NSCFNumber intValue]: unrecognized selector

2008-09-26 Thread j o a r
ed to forward your UI updates to the main thread. That's typically easy to do using "performSelectorOnMainThread:" j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: large documents with doc based app

2008-03-05 Thread j o a r
-piece. You typically don't want to load all of it into RAM at once. j o a r ___ 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-admi

Re: Deferring a selector until later, but before painting

2008-03-05 Thread j o a r
ppearing, but I can't find an easy way to avoid deferring some operations. How about delaying adding the control until the value you want to display in the control is "ready"? j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.

Re: Deferring a selector until later, but before painting

2008-03-06 Thread j o a r
ion scheme to supplement this method? j o a r ___ 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/Unsubscr

Re: How to set Document Icon when saving

2008-03-06 Thread j o a r
gt; <http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/Tasks/ImplementingDocApp.html > j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the modera

Re: NSTableView + delete button?

2008-03-11 Thread j o a r
eView and override "-keyDown:". There should be several implementations of this online that you could take a look at. j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comme

Re: warning: assignment from distinct Objective-C type

2008-03-11 Thread j o a r
instances that are strongly typed (NSFileManager, NSHost, NSNull, et.c.). j o a r ___ 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 + delete button?

2008-03-11 Thread j o a r
acter" and similar in NSText.h (and in the documentation). j o a r ___ 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.

Re: XCode3 errors on startup

2008-03-18 Thread j o a r
1/7/16930> j o a r ___ 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: Getting notifications when any file in a folder change

2008-03-18 Thread j o a r
Reference/FSEvents_Ref/FSEvents/index.html > j o a r ___ 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: Intercepting retain/release of object

2008-03-21 Thread j o a r
ehind the scenes, but it's one way to get an understanding. (Also add an override for autorelease.) A much, much, better way of doing that would be to use the Object Allocations instrument. j o a r ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: How do I disable this warning: "local declaration of 'varname' hides instance variable"

2008-03-23 Thread j o a r
Chuck, * You really shouldn't suppress these warnings * If you use ObjC 2.0 properties you don't have to write those accessors in the first place, and * If you use ObjC 2.0 properties, you can use this form without warnings: self.foo = foo; j o a r On Mar 23, 2008,

Re: How to delay application quit?

2008-03-25 Thread j o a r
ngleton objects should never be released"); [super dealloc]; } This communicates better what your intention is, and also catches the unlikely case of this instance ever being deallocated when it shouldn't, or if the class is being repurposed to a multi-inst

Re: How to delay application quit?

2008-03-25 Thread j o a r
then only actually update the behaviour for apps compiled on a newer version of the OS. j o a r ___ 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 c

Re: Main Thread UI and Detached Thread

2008-03-31 Thread j o a r
dates. You might need to throttle or otherwise limit your callouts to the main thread if this proves to be the problem. You can use Instruments or Shark to get a view of the work being performed on the main thread while you run your worker thread.

Re: Main Thread UI and Detached Thread

2008-03-31 Thread j o a r
do *something*... How do you notify the controls in the UI that they need to update to reflect new values? What is the total time required to run the task by your worker thread? j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: Main Thread UI and Detached Thread

2008-03-31 Thread j o a r
time by not learning how to use the performance tools. j o a r ___ 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.app

Re: Main Thread UI and Detached Thread

2008-03-31 Thread j o a r
, for us to be able to help you figure out what's wrong. j o a r ___ 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.appl

Re: Main Thread UI and Detached Thread

2008-04-04 Thread j o a r
ssBar, [value doubleValue]); [progressBar setDoubleValue: [value doubleValue]]; } Like I said earlier, I think that you would benefit from posting a sample project that reproduces the problem. j o a r ___ Cocoa-dev mailing list (

Re: Menu Key Equivalents Not Displayed

2008-04-06 Thread j o a r
s for me please as I think I'm going mad. Sounds like some sort of conflict with keyboard shortcuts used by menu items in the main menu? (g -> find next, p -> print, q -> quit, et.c.) j o a r ___ Cocoa-dev mailing list

Re: Menu Key Equivalents Not Displayed

2008-04-06 Thread j o a r
entation: <http://developer.apple.com/bugreporter/> j o a r ___ 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 He

Re: How to replace image contents?

2008-04-09 Thread j o a r
#x27;s obviously also a really good place to learn more about our tools - and everything else related to development on the Mac. Cheers, j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

Re: ObjC static member variable

2008-04-10 Thread j o a r
ide of the class No, ObjC doesn't have any support for static member variables. j o a r ___ 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 coco

Re: ObjC static member variable

2008-04-10 Thread j o a r
On Apr 10, 2008, at 12:48 PM, j o a r wrote: No, ObjC doesn't have any support for static member variables. Btw. For ObjC I think it would be more appropriate to call them "class variables". j o a r ___ Cocoa-dev mailing

Re: Getting line numbers from an NSString

2008-04-11 Thread j o a r
would be a very cool addition), you basically have to do it manually. NSString has a method to help you identify line endings in case you have to deal with files that could use different characters / character sequences to represent that (\n, \

  1   2   >