:
info gc-roots
info gc-references
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
add better error checking:
if ([scanner scanInt: numerator])
{
// Continue parsing
}
j o a r
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments
anyone tell me what I might be doing wrong?
Hello Mark,
Perhaps this is your problem:
http://www.cocoabuilder.com/archive/message/cocoa/2008/2/8/198326
You wouldn't be the first one to bump into that...
Cheers,
j o a r
___
Cocoa-dev mailing
yourself, or attempt
to modify / tweak / hack one of the existing controls. You can hack
the NSTableView to sort of work that way, like I showed with my
SubViewTableView example, or you might be able to hack the
NSCollectionView to sort of work that way.
Good luck!
j o a r
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:
http
-by-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-admins
/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 moderators at cocoa-dev-admins
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
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.apple.com
Help
/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:
http
/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/Update your
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, at 8:59 PM
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-instance
pattern.
j o a r
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 cocoa-dev-admins(at)lists.apple.com
Help
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.
j o a r
*...
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)
Please do not post
not call -display directly.
This is a pretty simple app and I don't have time to dive into
performance tools to discover why a single thread in a 10-page app
isn't doing what it's advertised to do.
I don't think you're saving any time by not learning how to use the
performance tools.
j o
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 moderator comments to the list
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 cocoa-dev-admins
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 list (Cocoa-dev
to have a look at the NSTextStorage property
of your text view.
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
.
...but if your code is designed in a way where messages are sent to
deallocated objects, I would say that you should solve that problem,
and not set your instance variables to nil. Fix it at the source.
j o a r
___
Cocoa-dev mailing list (Cocoa-dev
this happening in your app, the more expensive it will
be to fix it once it becomes a more serious 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
textStorage], NSStringFromRange([textView
selectedRange]), aString, [aString string]);
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
to something that could never be an object address - Like 0x1.
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
your superclass, is fraught with peril and typically incorrect. Always
use accessor methods / properties for that type of situation.
Also keep in mind what I said earlier in this thread about calling out
from init/dealloc - It's dangerous!
j o a r
that you take
a look at the performance tool Instruments, in particular the Object
Allocations and Leaks templates that should be able to answer these
questions.
j o a r
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
/ context property,
to
// which the DeductionLine responds by instantiating an appropriate
// Dependency subclass.
j o a r
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments
might find a reference to such a
function?
Sounds like a job for DTrace, at least if everything else fails.
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
though.
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:
http
to be the delegate of the window? That's how it
ends up in the responder chain. In this way it would appear *before*
the app, which typically is what you want. If you want to add
something *after* the app, don't use a window controller, use an
application delegate.
j o a r
Check out:
CGRegisterScreenRefreshCallback(), and
CGWindowListCreateImage()
Documentation is a bit limited at this point, but they're pretty easy
to figure out.
j o a r
On Apr 25, 2008, at 11:35 AM, Marcio Castilho wrote:
I am new to programming in Mac OSX. I need to do
On Apr 30, 2008, at 7:27 PM, Jens Alfke wrote:
I also changed the pool calls to the current recommended names: +new
and -drain.
Can you point me to where the official documentation recommends the
use of +new over +alloc-init?
Thanks,
j o a r
Debugger instead of having to set up remote debugging. I'm
not sure if you could, but it would be easier, and probably worth a try.
j o a r
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments
or NSRuleEditor instead
of that old hack... :-)
You can also create a custom cell subclass to solve this type of
problem. This is a good piece of sample code to show how that works:
http://developer.apple.com/samplecode/PhotoSearch/
j o a r
that it can be made to work, but you need to keep in mind that
it is sample code, not a fully fleshed out component. You should
expect there to be things that you have to fix, and complement. A
thing that comes to mind is tab focus key chain management.
Good luck,
j o a r
in the Cocoa community - much like
Sparkle, Growl, 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(at)lists.apple.com
there isn't anything I can do
about it :P should do the trick :)
See: LSMinimumSystemVersion
http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/PListKeys.html#//apple_ref/doc/uid/20001431-113253
j o a r
___
Cocoa-dev
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 requests or moderator comments to the list
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 your nib file.
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
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 (Cocoa-dev@lists.apple.com)
Please
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 to -setDoubleValue: will flag the
control as needing display.
j o a r
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 list (Cocoa-dev@lists.apple.com)
Please do not post admin requests
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
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do
:
http://developer.apple.com/documentation/DeveloperTools/Conceptual/PackageMakerUserGuide
http://developer.apple.com/documentation/DeveloperTools/Conceptual/SoftwareDistribution
j o a r
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com
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
___
Cocoa-dev mailing list (Cocoa
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.
Contact
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/Unsubscribe/Update your
: _NSControllerObjectProxy: 0x177cb0
But if I change it to @selection.number, it throws the exception:
[NSTreeController 0x1722e0 valueForUndefinedKey:]: this class is
not key value coding-compliant for the key selection.number.
What happens if you call -valueForKeyPath: instead of -valueForKey:?
j o a r
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 the list.
Contact
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.
Contact
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
___
Cocoa-dev
a 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.
j o a r
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
___
Cocoa-dev mailing
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/2049-999791
j o a r
___
Cocoa
could 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
menu).
j o a r
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)lists.apple.com
Help
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
___
Cocoa-dev mailing list (Cocoa-dev
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 list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments
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 the list.
Contact the moderators at cocoa-dev
: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 Subscription
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 admin requests or moderator comments to the list
.
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:
http
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
restrictions of that type.
j o a r
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:
http
, 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 (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments
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 post admin requests or moderator comments to the list
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)
Please do not post admin requests or moderator comments to the list
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 reference of
classes and methods.
j o a r
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/Unsubscribe/Update your
://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.html
j o a r
. The OS prevents you from interacting directly with the
internals of other applications for stability and security reasons.
You should be able to do what you want using Quartz Event Services.
Is there a way to build a focus-less application/window?
Can you explain what you mean by that?
j o
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)
Please do not post
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 list (Cocoa-dev
by 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.
j o a r
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
j o a r
___
Cocoa
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 always return YES.
j o a r
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 the moderators at cocoa-dev-admins
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
___
Cocoa-dev mailing list (Cocoa-dev
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.
j o
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 o a r
(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 lines.
j o a r
of 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 the list.
Contact
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 admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev
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 incorrectly.
j o a r
___
Cocoa
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 moderator comments to the list.
Contact
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 admin requests
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
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.
j o a r
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-admins
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/Unsubscribe/Update your Subscription:
http
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 the list.
Contact
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
important than being terse.
j o a r
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/Unsubscribe/Update your Subscription
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://developer.apple.com/bugreporter/
Thanks!
j o a r
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 is probably optimal.
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 o a r
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
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com
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.apple.com)
Please do
1 - 100 of 169 matches
Mail list logo