Re: If Array Controller is empty, how to populate pop-up list?

2010-01-14 Thread Rob Keniger
On 15/01/2010, at 4:24 PM, Jenny M wrote: > Like I mentioned previously - when I do that, it stays there even after an > object has been added, which is not what I'm aiming for. I only want it to > appear when empty. Ah, sorry, I didn't see that in your original po

Re: If Array Controller is empty, how to populate pop-up list?

2010-01-14 Thread Rob Keniger
r a value in the "Null Placeholder" field. -- Rob Keniger ___ 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: NSDocument

2010-01-14 Thread Rob Keniger
omNib if you are not using a separate NSWindowController. -- Rob Keniger ___ 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.a

Re: CGImageCreate performance

2010-01-07 Thread Rob Keniger
to host the bitmap? That way you can move the image around willy-nilly with virtually zero cost, and you only have to regenerate the bitmap if it changes. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: help system structure

2010-01-06 Thread Rob Keniger
tell Xcode about it by dragging it into the Groups and Files pane for your project. However, because you want Xcode to copy the folder you must use the "Create folder references for any added folders" when Xcode asks you what you want to do with the file, otherwise you

Re: NSEvent timestamp is zero

2010-01-06 Thread Rob Keniger
nce system boot. > > Is a mach timer the way to go on this? What are you actually trying to do? Why do you need to filter the events by timestamp? -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not p

Re: Looking tutorials or blogs on NSOutlineView & NSTreeController . . .

2010-01-06 Thread Rob Keniger
a. However, here's some Apple Sample Code: http://developer.apple.com/mac/library/samplecode/AbstractTree/ and there's quite a few hits here... http://www.google.com/search?q=nstreecontroller+core+data -- Rob Keniger ___ Cocoa-dev mailing

Re: Bindings blues

2010-01-06 Thread Rob Keniger
e file a bug report and refer to my bug number 7139579. -- Rob Keniger ___ 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: Path comparison and case sensitivity

2010-01-05 Thread Rob Keniger
won't need to worry about the case sensitivity of the file system anyway, though. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Path comparison and case sensitivity

2010-01-05 Thread Rob Keniger
know whether or not a file is on a case-sensitive volume? -- Rob Keniger ___ 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

Re: Weird issue with BDAlias/FSRefs and the case of filesystem paths

2010-01-05 Thread Rob Keniger
On 06/01/2010, at 10:29 AM, Rob Keniger wrote: > This is really, really weird. I've since rebuilt the directory with > Diskwarrior with no change to the behaviour. On the other machines here > everything's working so it must be something unique to my setup but I have &

Re: Weird issue with BDAlias/FSRefs and the case of filesystem paths

2010-01-05 Thread Rob Keniger
ird. I've since rebuilt the directory with Diskwarrior with no change to the behaviour. On the other machines here everything's working so it must be something unique to my setup but I have absolutely no idea where to start looking. -- Rob Keniger ___

Re: Getting warning when saving merged MOC

2010-01-05 Thread Rob Keniger
PendingChanges]; [[moc undoManager] enableUndoRegistration]; -- Rob Keniger ___ 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.a

Weird issue with BDAlias/FSRefs and the case of filesystem paths

2010-01-04 Thread Rob Keniger
t's also using FSRefs internally. I don't understand what could be happening here, does anyone have any clues? I've never seen anything like this. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: NSBezierPath linewidth not correct

2010-01-02 Thread Rob Keniger
ead... It will probably be easier to create an NSAffineTransform and translate the whole context by 0.5px, so all drawing is offset without you needing to fiddle with individual values. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: Custom NSWindow drawing

2010-01-01 Thread Rob Keniger
y using a second child window that overlays the top section of the window and draws just the arrow. Otherwise, you'd need to draw the whole thing yourself. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Creating CoreData classes

2009-12-27 Thread Rob Keniger
files myself? If you use mogenerator to create your custom NSManagedObject subclasses, you get methods like this created for you automatically: http://github.com/rentzsch/mogenerator -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Re: n00b Q re: AppController

2009-12-26 Thread Rob Keniger
nge the class names of the AppController classes in each plug-in so they don't have the same name. AppController is a poor name for the main class of a plug-in anyway, as it is nothing of the sort. "BurnerController" and "ProducerController" w

Re: storing ivars in core data docs

2009-12-23 Thread Rob Keniger
mentFileWrappers/ It's not perfect but it certainly works. For the OP, as Quincey pointed out, your question is not clear. What are you trying to do? -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

Re: Menu items unexpectedly disabled

2009-12-18 Thread Rob Keniger
nd that's how it should work. It works here in a test app. Are you doing anything "unusual" in your NSWindowController? What methods are you overriding? -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Plea

Re: CoreVideo101 Error when porting to new Cocoa project

2009-12-17 Thread Rob Keniger
eworks to your target? I'd say you need to add both the Quicktime and OpenGL frameworks for this code to compile. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to th

Re: Crash after Fix

2009-12-16 Thread Rob Keniger
build, but to no avail. In my experience, "Fix and Continue" is unreliable at best. I never use it. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Managed Object with Transformable Attribute (C Struct)

2009-12-16 Thread Rob Keniger
own bug, I've had a question open on stackoverflow for about a month on this one: http://stackoverflow.com/questions/1598600/ I thought it was just me being dense. Thanks for the info. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.a

Re: Bluetooth failure

2009-12-12 Thread Rob Keniger
x27;s not very useful. > So this can not work. Therefore your problem is not the iPod but the Mac. > You need two iPhones/iPods to do GameKit tests. This is true, however. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: NSBezierPath vs. NSImage

2009-12-11 Thread Rob Keniger
image needed to be redrawn any time the view content changed. With CALayers it is only drawn once. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Leopard for development / testing.

2009-12-09 Thread Rob Keniger
(10.2). The developer membership also gives you access to Apple's testing labs, if you are close to the locations. You'd need to ensure that your machine supports booting in Leopard, if your Mac shipped with Snow Leopard it probably won&#

Re: Customize the line's color that separates the window content from the title bar?

2009-12-08 Thread Rob Keniger
On 09/12/2009, at 5:59 AM, Michael Abendroth wrote: > Unfortunately, when turning on the "textured" flag in IB, my app > mysteriously crashes. When you say "mysteriously", what do you mean? What is the stack backtrace? -- Rob Keniger

Re: Big memory/time consumption in NSTreeController KVO GC

2009-12-08 Thread Rob Keniger
On 09/12/2009, at 9:38 AM, Rob Keniger wrote: > There are still massive remaining performance issues with > NSTreeController/NSArrayController in 10.6 if you have a large number of > active bindings. ...and I should point out that these issues were bad enough for me to completel

Re: Big memory/time consumption in NSTreeController KVO GC

2009-12-08 Thread Rob Keniger
jc_read_weak() that appear to be involved in the the -compact method of NSConcretePointerArray are taking up an inordinate amount of CPU time. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mo

Re: A hillegass challenge

2009-12-04 Thread Rob Keniger
rmal. However, you should generally use "nil" instead of "NULL" for nil objects in Objective-C. It doesn't matter from a technical point of view (they're both the same) but it's the accepted coding style. -- Rob Keniger _

Re: Text insertion point not blinking

2009-12-03 Thread Rob Keniger
iew, the cursor displays normally. -- Rob Keniger ___ 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: Text insertion point not blinking

2009-12-03 Thread Rob Keniger
to why this could be happening? It's possible you might need to subclass NSTextView and return NO from -isOpaque, that's bitten me a few times when subclassing Apple controls. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: Use of preprocessor macros

2009-12-01 Thread Rob Keniger
a particular option, you can highlight the option and then choose "delete definition at this level" from the action popup in the bottom-left of the window. This is probably drifting off into Xcode-users territory now though... -- Rob Keniger ___

Re: Use of preprocessor macros

2009-12-01 Thread Rob Keniger
the build configuration you think you're compiling? Are you changing the preprocessor setting on the right target? Probably worth double checking. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Hiding String Constant in Compiled Code

2009-11-30 Thread Rob Keniger
the > system." No where does it say the system will not run the altered code. Launchd will terminate the application on launch if a change is detected, provided you sign the application with the -kill flag. However, as Jens points out, this is not a sol

Re: How to remove all objects from a NSTreeController ?

2009-11-26 Thread Rob Keniger
for you. >> > > I am binding to arrangedObjects of the NSArrayController Yes, you bind the content of the table view to the array controller, but you should bind the content of the NSArrayController to the "selection" key of the NSTreeController. What is the content bi

Re: How to remove all objects from a NSTreeController ?

2009-11-26 Thread Rob Keniger
Your datasource can use KVO to observe the selection key of the NSTreeController and update the table view as appropriate. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: Cocoa Bindings and NSUserDefaults

2009-11-24 Thread Rob Keniger
s standardUserDefaults] registerDefaults:defaults]; } + (AKLaunchAction)launchAction { return (AKLaunchAction)[[[NSUserDefaults standardUserDefaults] objectForKey:akLaunchActionKey] intValue]; } -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@

Re: Inactivity Timer

2009-11-24 Thread Rob Keniger
chine has been idle for a specified amount of time: http://www.zathras.de/angelweb/sourcecode.htm#UKIdleTimer -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: NSTreeController content array bindings

2009-11-22 Thread Rob Keniger
es not seem to > be working. What binding are you using in Interface Builder? You should be using the "Content Array" binding. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests o

Re: Problem with multiple instances of a nib

2009-11-22 Thread Rob Keniger
break; } } [controllers removeObject:controllerToRemove]; } -- Rob Keniger ___ 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

Re: Problem with multiple instances of a nib

2009-11-22 Thread Rob Keniger
not, and if so, how would I make it do that?) Register the object that manages the array as a delegate of the window, implement -windowWillClose: and remove the appropriate window controller from the array? -- Rob Keniger ___ Cocoa-dev mailing list (Coc

Re: Problem with multiple instances of a nib

2009-11-22 Thread Rob Keniger
tion)newImagePanelForImage:(NSImage*)aImage { ctrl = [[ImagePanelController alloc] init]; [ctrl setImage:aImage]; } The window controller handles all the nib loading machinery itself. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-

Re: How to avoid text distortion

2009-11-19 Thread Rob Keniger
ay without sub-pixel anti-aliasing on layer-backed views. If you want the text to have sub-pixel anti-aliasing, give the text field a background color. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Advice about crash requested

2009-11-19 Thread Rob Keniger
I didn't think you could use NSZombieEnabled for GC apps. Can you? -- Rob Keniger ___ 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: What exactly does NSController do?

2009-11-18 Thread Rob Keniger
oller and friends conform to the NSEditor informal protocol, which means they correctly handle -commitEditing and -discardEditing messages, which binding directly to an object doesn't do. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: NSUndoManager and runModalForWindow: (again)

2009-11-16 Thread Rob Keniger
7;s no mention of any special considerations when using it with modal > windows. If you have a paid dev membership, now might be the time to use a support incident I think. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Re: Example of categorized lists in a Mail-type interface

2009-11-15 Thread Rob Keniger
amplecode/SourceView -- Rob Keniger ___ 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 Sub

Re: Where are the interface builder components?

2009-11-14 Thread Rob Keniger
ls. > it makes no sense to me... There's nothing you can do except file a bug report. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators a

Re: Custom window not getting a shadow

2009-11-10 Thread Rob Keniger
one know why this > might be happening? Does the window have the shadow option enabled when you inspect it in Interface Builder? You might want to try setting the shadow in -awakeFromNib. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@list

Re: code data export import strategies

2009-11-09 Thread Rob Keniger
kipped it too. In my case I don't need to use multithreading and it was easy to adapt the code to a non-threaded implementation. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mode

Re: avoiding spagetti code

2009-11-09 Thread Rob Keniger
ntroller object to supply the view with the information that it needs to be able to draw representations of your model objects. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator co

Re: NSBitmapImageRepresentation image generation and saving resulting in image with much noise

2009-11-09 Thread Rob Keniger
unsigned char* bitmapData = [bitmap bitmapData]; if (bitmapData != NULL) { bzero(bitmapData, [bitmap bytesPerRow] * [bitmap pixelsHigh]); } } -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

Re: code data export import strategies

2009-11-08 Thread Rob Keniger
mmend getting a copy if you're working with Core Data. -- Rob Keniger ___ 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: NSTreeController, Core Data and root objects

2009-11-05 Thread Rob Keniger
You're right, caching the object would be an improvement on the fetch. I'll proceed with this and see if I have any problems. Many thanks, -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: NSTreeController, Core Data and root objects

2009-11-05 Thread Rob Keniger
[super insertObject:object atArrangedObjectIndexPath:indexPath]; //this method just sorts the child objects in the tree so they maintain their order [self updateSortOrderOfModelObjects]; } Can anyone see anything wrong with this? -- Rob Keniger

Re: NSTreeController, Core Data and root objects

2009-11-05 Thread Rob Keniger
ey. (Document NSObjectController -> root.orderedChildren). > Members of the content array appear as top-level nodes in the outline. > > My tree has constant structure, so I can't make any comment on mutation. Hi Fritz, Thanks for this pointer. Unfortunately, while this works great for a st

NSTreeController, Core Data and root objects

2009-11-04 Thread Rob Keniger
the tree controller does not assign the "invisible" root item as the parent of the new item. Is there an easy way to have the NSTreeController/NSOutlineView combination work in this situation? I'm considering moving to a datasource for the NSOutlineView if

Re: Programmatic Binding KVC KVO

2009-11-04 Thread Rob Keniger
://www.tomdalling.com/cocoa/implementing-your-own-cocoa-bindings -- Rob Keniger ___ 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

Re: [solved] NSManagedObject and weak references under GC

2009-11-03 Thread Rob Keniger
On 04/11/2009, at 3:41 PM, Rob Keniger wrote: However, now that I've switched the document to be a subclass of NSPersistentDocument, I am getting compilation errors in my NSViewController subclass when it tries to access the foo property of the document: document.foo = @"bar&q

NSManagedObject and weak references under GC

2009-11-03 Thread Rob Keniger
))' Why would this compiler error be occurring? -- Rob Keniger ___ 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)li

Re: Problem with allocating memory

2009-10-27 Thread Rob Keniger
On 28/10/2009, at 1:31 PM, Stephen J. Butler wrote: > Because you're printing the address of the stack variable myString, > which is the same place on the stack every time. Not to mention the fact that you're leaking a string on each iteration through the loop.

Re: Sending a Selector to another Class.

2009-10-21 Thread Rob Keniger
though: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/ObjectiveC/index.html -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moder

Re: NSColor for darker hightlight color

2009-10-21 Thread Rob Keniger
olors from the screen and get an NSColor/CGColorRef definition. Useful, but not what the OP requires. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mode

Re: Child window shows up on top despite specifying NSWindowBelow

2009-10-20 Thread Rob Keniger
indowLevel: on the child window to (yourWindowLevel - 1)? -- Rob Keniger ___ 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.a

Re: Child window shows up on top despite specifying NSWindowBelow

2009-10-20 Thread Rob Keniger
bility and then call NSEnableScreenUpdates(). This is what I do and it works perfectly. It's one of the main reasons these calls exist, AFAIK. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-17 Thread Rob Keniger
ducts/completion-dictionary/index.html It allows you to create fully customizable macros and falls back to Xcode's auto-completion if a match can't be found. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: correctly Controlling Garbage Collection

2009-10-17 Thread Rob Keniger
oid)mouseUp:(NSEvent*)event { [[NSGarbageCollector defaultCollector] enable]; [[NSGarbageCollector defaultCollector] collectExhaustively]; //other mouse up stuff } That way the collector should never fire while the user is drawing. -- Rob Keniger ___

Re: odd behavior with NSError?

2009-10-16 Thread Rob Keniger
the Burninator. Excellent. -- Rob Keniger ___ 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: Problem using filewrappers under snow leopard

2009-10-13 Thread Rob Keniger
get the error. It's probably worth compiling against the 10.6 SDK and using this method to diagnose the actual error. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: "Save as PDF"?

2009-10-13 Thread Rob Keniger
ondering if it can be programmatically be done. PDF is a fundamental part of the Mac OS X Quartz drawing architecture. If you draw something to a view, you can get a PDF representation of it. Have a look at the -dataWithPDFInsideRect: method of NSView. -- Rob Keniger _

Re: Multiple relationships between two entities

2009-10-12 Thread Rob Keniger
Item object will probably work just fine for me I think. -- Rob Keniger ___ 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

Multiple relationships between two entities

2009-10-12 Thread Rob Keniger
") which should be the inverse relationship, but that's not possible because I can only have one inverse relationship. I think I'm getting mixed up here, how should this actually be modelled? -- Rob Keniger ___ Cocoa-dev mailing list

Re: Updating application info plist

2009-10-09 Thread Rob Keniger
con in the dock after relaunch" option. To do this, surely they must be rewriting the LSUIElement key in the app's own Info.plist while the app is running, right? Or is there another way to do this? -- Rob Keniger ___ Cocoa-dev mailing list (Coc

Re: Hardware UUID in New Mac Book Pro

2009-10-08 Thread Rob Keniger
pi to get that ID? I don't think that the Hardware UUID is a supported way of identifying a machine. Have a look at: http://developer.apple.com/mac/library/technotes/tn/tn1103.html -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists

Re: app delegate +initialize

2009-10-07 Thread Rob Keniger
dow in a separate xib, and then instantiate your window controller programmatically from your AppController at a point where you know the user defaults have been loaded. That way you don't need to worry about the order of loading objects from the xib as you co

Re: Rounded NSBox/NSView?

2009-10-05 Thread Rob Keniger
during drawing which overrides anything you set, so it's not as straightforward as it might seem. I agree with Kyle, it is probably a good idea to rethink the design. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Re: Weird NSToolbar glitch

2009-10-01 Thread Rob Keniger
for more complex stuff I'd tend to avoid it. -- Rob Keniger ___ 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: NSWindowController and GC

2009-09-30 Thread Rob Keniger
indow controller somewhere. This generally means making the window controller an ivar of another object, e.g. your NSDocument instance. What object creates your window controller in the first place? That's probably the object that needs to hang on to it. -- R

Re: Fast transition between two graphics

2009-09-29 Thread Rob Keniger
ses the GPU, so if the GPU is a bit feeble or you are using really large images then it may have frame rate issues, however Core Animation can have these issues too. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do n

Re: Fast transition between two graphics

2009-09-29 Thread Rob Keniger
to do this? You could do it this way, although normally for something like this I'd use Core Image. Make two CIImages and use an animated transition CIFilter. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Re: Looking for Sample code: WWDC2007 - Session 201 - Building Animated Cocoa User Interfaces

2009-09-28 Thread Rob Keniger
er. This might be one of the ones you're looking for: http://developer.apple.com/mac/library/samplecode/CocoaSlides/ That was definitely shown at WWDC 2007. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Handling a File Drag to my Window

2009-09-22 Thread Rob Keniger
, you need to return NSDragOperationCopy as the NSDragOperation from the -draggingEntered: and/or -draggingUpdated: protocol methods. Note that this is only appropriate for dragging events where you're actually copying the content. -- Rob Keniger ___ Coco

Re: an app that never quits

2009-09-22 Thread Rob Keniger
ble in the current implementation. As others have stated, file a bug if you want things to change. -- Rob Keniger ___ 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: NSImage rotation regression?

2009-09-22 Thread Rob Keniger
ot;NSImage: Orientation metadata (e.g. exif) now respected by default" You probably need to use the - (id)initWithDataIgnoringOrientation: (NSData *)data method that it mentions. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: Oh notification, where are you?

2009-09-21 Thread Rob Keniger
DidFinishGatheringNotification object:nil]; -- Rob Keniger ___ 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: bitmap caching issue (was: settings to build for 10.5 on 10.6?)

2009-09-20 Thread Rob Keniger
On 21/09/2009, at 9:26 AM, Rob Keniger wrote: Now that you've pointed that out, neither am I! I should always remember to check the header, the docs don't mention this detail. Should I file a bug against the docs? Cancel that, I see the documentation for the 10.6 API is much

Re: bitmap caching issue (was: settings to build for 10.5 on 10.6?)

2009-09-20 Thread Rob Keniger
, actually. Now that you've pointed that out, neither am I! I should always remember to check the header, the docs don't mention this detail. Should I file a bug against the docs? This would do it, I think: Many thanks. -- Rob Keniger __

Re: bitmap caching issue (was: settings to build for 10.5 on 10.6?)

2009-09-20 Thread Rob Keniger
afe to release the NSBitmapImageRep. So would this be acceptable on 10.5/GC? @implementation NSBitmapImageRep (Additions) - (CGImageRef)safeCGImage { CGImageRef cgImage = [self CGImage]; return (CGImageRef) CFMakeCollectable(CGImageCreateCopy(cgImage)); }

Re: [myNSWindow setDocumentEdited:dirtyB] fail ??

2009-09-17 Thread Rob Keniger
the main window. It won't show the "dirty" mark at all. You should use a normal NSWindow. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: Overcoming crappiness of NSSplitView - what's the magic?

2009-09-15 Thread Rob Keniger
resized programatically as well as drag- resized, 2. needs to be true also. Have a look at this excellent article by Matt Gallagher: http://cocoawithlove.com/2009/09/nssplitview-delegate-for-priority-based.html -- Rob Keniger ___ Cocoa-dev mailing

Re: Why the Cocoa function can't be called from JavaScript?

2009-09-14 Thread Rob Keniger
ot;]; } One other thing I noticed is that you are allowing access to all Objective-C methods in your app by doing this: + (BOOL)isSelectorExcludedFromWebScript:(SEL)aSelector { return NO; } + (BOOL)isKeyExcludedFromWebScript:(const char *)name { return NO; } This is a massive security hole, y

Re: Mac Mini or iMac for Cocoa Development?

2009-09-14 Thread Rob Keniger
ch in half. I highly recommend trying it out. -- Rob Keniger ___ 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: NSImage with multiple representation sizes

2009-09-08 Thread Rob Keniger
ber 128 for a 128x128px rep) then you'll see the various representations drawn as you resize. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Conta

Re: Meta Package in 10.5 to support 10.3 problem

2009-09-08 Thread Rob Keniger
On 08/09/2009, at 9:17 PM, Sparta wrote: I am building a meta package on 10.5 that supports 10.3 (Install Properties). This is the wrong list. You want Installer-dev: http://lists.apple.com/mailman/listinfo/installer-dev -- Rob Keniger

Re: Massive slowdown in NSArrayController selections in 10.6

2009-09-04 Thread Rob Keniger
On 04/09/2009, at 12:43 PM, Rob Keniger wrote: I'm interested to know if anyone else has been bitten by what seems to be a fairly serious performance regression bug in 10.6 with NSArrayController/NSTreeController. Basically, if you have an NSArrayController with more than a few bin

Re: Semi-document architecture

2009-09-04 Thread Rob Keniger
re and shoehorn my own document management controller logic in its place? No. You will still get a lot out of NSDocument with a moderate amount of customization. Great, thanks! -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Semi-document architecture

2009-09-03 Thread Rob Keniger
e. Would I be best off to migrate away from the NSDocumentController/ NSDocument architecture and shoehorn my own document management controller logic in its place? -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Massive slowdown in NSArrayController selections in 10.6

2009-09-03 Thread Rob Keniger
. I would have thought that quite a few apps would have seen this problem as the performance degradation is so dramatic. I've filed this bug as rdar://7139579 if anyone wants to reference it. -- Rob Keniger ___ Cocoa-dev mailing list

Re: learning the NSView structure of an app?

2009-08-29 Thread Rob Keniger
-coded border highlights. You can either add the argument to your executable in Xcode or run your app from the command line: ./YourApp.app/Contents/MacOS/YourApp -NSShowAllViews YES -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev

  1   2   3   4   >