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
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
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
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
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
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
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
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
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
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
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
&
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
___
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
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
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
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
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
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
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
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
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
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
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
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
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
(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
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
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
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
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
_
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
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.
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
___
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
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
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
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
s standardUserDefaults] registerDefaults:defaults];
}
+ (AKLaunchAction)launchAction
{
return (AKLaunchAction)[[[NSUserDefaults standardUserDefaults]
objectForKey:akLaunchActionKey] intValue];
}
--
Rob Keniger
___
Cocoa-dev mailing list (Cocoa-dev@
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.
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
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
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
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-
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
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.
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
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
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
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
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
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
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
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
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
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
[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
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
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
://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
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
))'
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
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.
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
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
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
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
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
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
___
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
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
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
_
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
")
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
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
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
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
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
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
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
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
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
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
, 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
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
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.
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
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
, 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
__
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));
}
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.
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
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
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
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
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
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 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.
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
.
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
-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 - 100 of 304 matches
Mail list logo