On Sep 6, 2009, at 10:00 AM, Steven Degutis wrote:
For instance, if you have 2 genuine properties on your Person
entity called firstName and lastName then you can create a fullName
property
on your Person class, and when firstName or lastName change, call
-willChangeValueForKey: and
Hello,
I just want to ask, how can I access/add in my app (if possible) the
Favorites list on the iPhone Phone app?
I saw an application that has synchronized Favorites list with theiPhone Phone
app. Is it possible to access the Favorites list and be able to modify the list?
Thanks in advance!
Hello,
I am building a meta package on 10.5 that supports 10.3 (Install
Properties).
I have two packages as:
1. Package 1: works on 10.6 onwards: (Gestalt sysv = 0x01060)
2. Package 2: works on 10.3, 10.4 and 10.5 (Gestalt sysv 0x01060)
Both the packages work fine independently.
I have
Hi all,
I'm trying to rasterize a PDF document using PDFKit, but it seems NSPDFImageRep
has a terrible memory leak, which
crashes my whole application. This is the simple test code I used:
for (int i = 0; i [pdfDoc pageCount]; i++)
{
NSLog(@Processing page %d/%d, i, [pdfDoc pageCount]);
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
___
Mind if I ask what is the app that you saw doing this?
Luke
On Sep 8, 2009, at 3:44 AM, Angelica Grace Tanchico wrote:
Hello,
I just want to ask, how can I access/add in my app (if possible) the
Favorites list on the iPhone Phone app?
I saw an application that has synchronized Favorites
On Fri, Sep 4, 2009 at 9:03 PM, Peter Ammonpam...@apple.com wrote:
Hi Jim,
First let me thank you for checking the release notes. However, that
particular issue is unrelated, confusingly enough.
Here's what's going on. The first menu item in the main menu (or more
precisely, its submenu)
That's not the iTunes store app right, the pipe game called Siphone,
it's something unauthorized? I don't know of an official API which
lets you do what you want and a documentation search didn't throw one
up. You may not be able to do that with the released APIs (if you can
I'd love to
I've just tested it on Snow Leopard (10a380), and it works as expected.
Do you happen to remember the technical reasons why KVO on DOs would fail?
Ed
On Mon, Sep 7, 2009 at 11:55 PM, Scott Anguishsc...@cocoadoc.com wrote:
In spite of the fact that it might be working, it isn't supported.
Hi All,
I am looking for a way to customize the Phonepad provided by the iPhone for
my application use. Here is the list I am interested in :
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments
Then I would say you have very little to do ;)
On Tue, Sep 8, 2009 at 10:34 AM, Dan Ribe dan.r...@gmail.com wrote:
Hi All,
I am looking for a way to customize the Phonepad provided by the iPhone for
my application use. Here is the list I am interested in :
On Sep 8, 2009, at 5:08 AM, DairyKnight wrote:
In the code, pdfDoc is a preloaded PDFDocument object. As seen from
above,
I've released everything allocated, but in Instruments, this app
keeps on
consuming memory.
I can't find anything wrong with your code. Have you tried checking
for
OK. Thanks for the response Jeff.
I appreciate it :)
Angie
Subject: Re: atanch...@live.com
From: jeff.schill...@gmail.com
Date: Tue, 8 Sep 2009 10:39:53 -0400
CC: cocoa-dev@lists.apple.com
To: atanch...@live.com
Siphon (the SIP/VoiP app, not the game) http://code.google.com/p/
siphon/
Sorry for my last mail ... It got sent while I was typing !
Hi All,
I am looking for a way to customize the Phonepad provided by the iPhone for
my application use. Here is the list I am interested in :
- Want to show it at the middle of the screen.
- Want to change caption of the button to Call.
On Sep 7, 2009, at 5:25 AM, Markus Spoettl wrote:
On Sep 7, 2009, at 1:31 PM, Thomas Clement wrote:
Looks like an Apple bug.
http://kb2.adobe.com/cps/506/cpsid_50654.html
That doesn't seem to be the problem with that user's machine as the
files are local.
It is more than likely that it
The application is Siphon
Angie
Mind if I ask what is the app that you saw doing this?
Luke
On Sep 8, 2009, at 3:44 AM, Angelica Grace Tanchico wrote:
Hello,
I just want to ask, how can I access/add in my app (if possible) the
Favorites list on the iPhone Phone app?
I
The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group is
holding our next meeting Tuesday, September 8th, at 7:00 PM at the
Apple Store on Michigan Ave.
Agenda:
- Book Report
- What's new in Snow Leopard Under the Covers
- adjournment to O'Toole's
You can't customize the phone pad, which is really just an instance of
a keyboard. For the stuff you want to do, you should write your own
custom view that behaves as you desire.
Luke
On Sep 8, 2009, at 7:48 AM, Dan Ribe wrote:
Sorry for my last mail ... It got sent while I was typing !
I should have posted the code sorry.
I deleted all the code out of the app for table view delegation. I
then pasted it back in one method at a time (except for the required
ones) and compiled then ran the app and now it works. I have no idea
why that fixed it but it did.
On Sep 7, 2009,
Hi all,
I am trying to make a user interface in which there is a view that
contains multiple subviews, one of which is an NSTextView. The parent
view should be embedded in an NSScrollView. The idea is that when the
NSTextView is typed in, and possibly resizes as a consequence, it's
Hello
I have a new file dialog that pops up as a sheet, hwoever on the first
popup of this sheet, Its not positioned below the titlebar
http://i29.tinypic.com/2k287p.jpg
But if I hit cancel, and then open the dialog again, Its perfect.
http://i27.tinypic.com/e9uurl.jpg
Any idea what Im
If you haven't gotten a response the first time, don't resend your
message without checking cocoabuilder.com and lists.apple.com to make
sure it went through. If you don't see it there, then fire away.
--Kyle Sluder
___
Cocoa-dev mailing list
On Tue, Sep 8, 2009 at 10:30 AM, Benjamin Rister bdris...@gmail.com wrote:
Hi Ken,
Thanks for your response.
The size of an image is the default size of the rect in which it's drawn
when the person drawing it doesn't have any more specific information.
That's a concept that there can
Hi,
I have a text field (two, actually) bound to a string value in a controller
object, and I'd like to validate the value on each keystroke so that I can
enable other controls appropriately depending on the content of the field.
The text fields are set to continuous updating in IB, and I have
Hi Ken,
Thanks for your response.
The size of an image is the default size of the rect in which it's
drawn when the person drawing it doesn't have any more specific
information. That's a concept that there can only be one of for the
entire image, so it's confusing if the -size for
On Sep 8, 2009, at 10:38 AM, Edward Chan wrote:
I've just tested it on Snow Leopard (10a380), and it works as
expected.
Perhaps. But as I said, unsupported, untested internally, and could
break at any time.
Do you happen to remember the technical reasons why KVO on DOs would
fail?
On Sep 8, 2009, at 12:53 PM, Brent Smith wrote:
Hello
I have a new file dialog that pops up as a sheet, hwoever on the
first popup of this sheet, Its not positioned below the titlebar
http://i29.tinypic.com/2k287p.jpg
But if I hit cancel, and then open the dialog again, Its perfect.
On Sep 8, 2009, at 5:08 AM, DairyKnight wrote:
NSPDFImageRep *pdfImgRep = [[NSPDFImageRep alloc] initWithData:[page
dataRepresentation]];
Check [page dataRepresentation] above.
Pre-SnowLeopard the NSData returned was not autoreleased and so needed
to be released by the caller. This was not
On Sep 8, 2009, at 1:05 PM, Doug Knowles wrote:
Hi,
I have a text field (two, actually) bound to a string value in a
controller
object, and I'd like to validate the value on each keystroke so that
I can
enable other controls appropriately depending on the content of the
field.
The text
On Sep 7, 2009, at 3:50 PM, Duncan McGregor wrote:
It used to be that PDFView anti-aliased nicely. Now it doesn't, at
least not for some files. Text and scans rendered in both the
PDKKitViewer and PDFLinker2 samples are horrible in 10.6.
Can you point to a specific PDF that shows this
Ahh, the visible at launch was the issue. Thanks!
On Sep 8, 2009, at 11:07 AM, Jason Foreman wrote:
On Sep 8, 2009, at 12:53 PM, Brent Smith wrote:
Hello
I have a new file dialog that pops up as a sheet, hwoever on the
first popup of this sheet, Its not positioned below the titlebar
Sigh. I so should have known.
That's it. Many thanks for the quick reply, and for your time.
On Tue, Sep 8, 2009 at 2:18 PM, Jason Foreman ja...@threeve.org wrote:
It sounds like you've set the Continuous property of the text field.
When using bindings, you need to set the Continuously
So to be clear: if I create a TIFF image, with tiffutil -cat, that
has 9x...@72dpi, 16x1...@72dpi, 32x3...@72dpi:
- This is an entirely supported configuration, despite what man
tiffutil says and the warning it generates.
No, these reps would not have the same -size. If you set the DPI
Hey,
Is anyone aware of a way to receive NSURLDownload's delegate methods on a
separate thread, i.e. not the main one? I am using an NSOperationQueue to
manage them but at the moment I need to use the performSelectorOnMainThread
method to get it too work. The problem with this is that it
Oops! Didn't realize you had not reposted, but instead posted it
elsewhere! Gmail did not indicate this.
Sorry.
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the
On Sep 8, 2009, at 1:03 PM, Colin Deasy wrote:
Hey,
Is anyone aware of a way to receive NSURLDownload's delegate methods
on a separate thread, i.e. not the main one?
Delegate messages will be sent on the thread which calls this method.
So, start your NSURLDownload on whichever thread you
Spot on, thanks man.
Fixed it using:[[NSRunLoop currentRunLoop] runUntilDate:[NSDate distantFuture]];
while ([self isDownloading] );
So just blocks until finished the download. If I take away the while loop it
doesn't run.Is there a better way?
Colin
CC: cocoa-...@not-pc.com;
On Tue, Sep 8, 2009 at 1:43 PM, Colin Deasycolde...@hotmail.com wrote:
So just blocks until finished the download. If I take away the while loop it
doesn't run.Is there a better way?
Then why are you running in a separate thread at all? Why not just
run asynchronously on the main thread?
On Sep 8, 2009, at 12:36 PM, Colin Deasy wrote:
Well I did try that but there were no callbacks. That is I initiated
the download in the start method of an NSOperation.
You likely have no run loop running on the thread. You need that for
NSURLConnection to do its work.
--
Dave Carrigan
Le 8 sept. 2009 à 22:15, jonat...@mugginsoft.com a écrit :
I am not sure if this is a problem unique to me or not but under
10.5 [[NSHost currentHost] name] or [[[NSProcessInfo] processInfo]
hostname] were quick and easy ways to get an mDNS friendly hostname
such as imac-2.local
On 10.6
On Sep 8, 2009, at 1:43 PM, Colin Deasy wrote:
Spot on, thanks man.
Fixed it using:
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate distantFuture]];
while ([self isDownloading] );
This will work, but you won't be able to know if your
NSInvocationQueue wants to cancel. If that's
Well I did try that but there were no callbacks. That is I initiated the
download in the start method of an NSOperation.
Subject: Re: NSURLDownload delegate methods seperate thread
From: cocoa-...@not-pc.com
Date: Tue, 8 Sep 2009 13:17:55 -0600
CC: cocoa-dev@lists.apple.com
To:
On 8 Sep 2009, at 22:24, Jens Alfke wrote:
On Sep 8, 2009, at 1:15 PM, jonat...@mugginsoft.com wrote:
I am not sure if this is a problem unique to me or not but under
10.5 [[NSHost currentHost] name] or [[[NSProcessInfo] processInfo]
hostname] were quick and easy ways to get an mDNS
On Tue, Sep 8, 2009 at 11:42 AM, Benjamin Rister bdris...@gmail.com wrote:
So to be clear: if I create a TIFF image, with tiffutil -cat, that has
9x...@72dpi, 16x1...@72dpi, 32x3...@72dpi:
- This is an entirely supported configuration, despite what man tiffutil
says and the warning it
While I don't speak for Apple, we ran into this with Daylite Server, and
found out that you shouldn't be using those calls.
Basically, your computer is NOT the authority on your computer's host name.
The DNS system is the authority. So these calls tend to trigger DNS lookups,
at which point you're
On 8 Sep 2009, at 22:37, Jean-Daniel Dupas wrote:
Le 8 sept. 2009 à 22:15, jonat...@mugginsoft.com a écrit :
I am not sure if this is a problem unique to me or not but under
10.5 [[NSHost currentHost] name] or [[[NSProcessInfo] processInfo]
hostname] were quick and easy ways to get an
I am trying to build a ui where I have an NSView with a variety of
subviews that are programatically added from nib files similar to the
CocoaSlides demo. I need to be able to zoom in and out. Essentially
I have little boxes of cocoa controls. I have tried all sorts of
solutions with
I am not sure if this is a problem unique to me or not but under 10.5
[[NSHost currentHost] name] or [[[NSProcessInfo] processInfo]
hostname] were quick and easy ways to get an mDNS friendly hostname
such as imac-2.local
On 10.6 I find that both these combinations block badly
On 8 Sep 2009, at 22:44, Brent Gulanowski wrote:
While I don't speak for Apple, we ran into this with Daylite Server,
and found out that you shouldn't be using those calls.
Basically, your computer is NOT the authority on your computer's
host name. The DNS system is the authority. So
On Tue, Sep 8, 2009 at 3:25 PM, Brent Gulanowskibgulanow...@gmail.com wrote:
For classes, you can check whether NSClassFromString(@Classname) returns a
class.
This might return incompatible private versions of some classes. For
example, NSClassFromString(@QLPreviewPanel) will return a class
On Sep 8, 2009, at 3:25 PM, Brent Gulanowski wrote:
For selectors, you can check whether NSSelectorFromString(@selector)
returns a selector.
That won't do what you want. NSSelectorFromString() always returns a
selector; it creates one itself if that name has not been used yet.
(And not
Hi Brent,
I may have been one of those appalled Apple engineers. In general,
[NSHost currentHost] is the worst API on the system and people should
avoid it like the plague.
Jonathan, just use SCDynamicStoreCopyLocalHostName instead.
gethostname probably isn't going to do what you want.
For classes, you can check whether NSClassFromString(@Classname) returns a
class.
For selectors, you can check whether NSSelectorFromString(@selector)
returns a selector.
Usually that's enough. In fact, if you pick a representative class that was
introduced in the OS release of your choice, you
While I don't speak for Apple, we ran into this with Daylite Server,
and found out that you shouldn't be using those calls.
I got a similar response, I had been using NSHost previously and
hadn't noticed any delay so assumed it was using a local backing
store. I ran the same code on the
The docs for NSUserDefaults have this to say regarding -
[NSUserDefaults synchronize]:
Because this method is automatically invoked at periodic intervals,
use this method only if you cannot wait for the automatic
synchronization (for example, if your application is about to exit)
On Sep 8, 2009, at 4:24 PM, Jens Alfke wrote:
On Sep 8, 2009, at 4:13 PM, Sidney San Martín wrote:
Because this method is automatically invoked at periodic
intervals, use this method only if you cannot wait for the
automatic synchronization (for example, if your application is
about to
On Sep 8, 2009, at 3:31 PM, Marc Krochmal wrote:
Hi Brent,
I may have been one of those appalled Apple engineers. In general,
[NSHost currentHost] is the worst API on the system and people
should avoid it like the plague.
Hi Marc,
Can you tell why this is so?
Best,
__jayson
Circus
On Sep 8, 2009, at 4:13 PM, Sidney San Martín wrote:
Because this method is automatically invoked at periodic intervals,
use this method only if you cannot wait for the automatic
synchronization (for example, if your application is about to exit)
To my knowledge that's always been
Hi all,
Can't get a simple example working. AppearedNotificationHandler() should be
called in the code below when a USB device (any device for now) is plugged in.
I see the NSLog(@registerDeviceCallbackHandler) message appear in the console
when I start the application, but never see the
Hi Jens,
On Tue, Sep 8, 2009 at 4:24 PM, Jens Alfke j...@mooseyard.com wrote:
On Sep 8, 2009, at 4:13 PM, Sidney San Martín wrote:
Because this method is automatically invoked at periodic intervals, use
this method only if you cannot wait for the automatic synchronization (for
example, if
I am having trouble fetching results with a to-many relationship and
would like to ask for advice.
I have two NSManagedObject subclasses: Owner and Book. There is a one-
to-many relationship between Owner and Book (an Owner can be
associated with many Books).
@interface Owner :
I've been experimenting with an NSDockTilePlugIn. The documentation is
a bit sparse. It looks like the plug-in needs to be 32-bit/64-bit GC
supported. The plug-in gets called successfully in the release build
of my app, but it does not get called in the debug build. Instead, I
get this
On 09/09/2009, at 6:20 AM, Ken Ferry wrote:
On 10.6 and later, yes, you can count on it choosing 16x16 pixel
representation. We're not looking at resolution anymore, only
number of
pixels in rep vs number of pixels to be filled.
I'm pretty sure it would on previous OSes too, but not 100%
On Tue, Sep 8, 2009 at 5:47 PM, Chris Carsoncucar...@yahoo.com wrote:
IOReturn kernErr;
You never seem to check for errors. Please ensure your calls are
succeeding by checking the value of this variable. If they're
failing, use macerror(1) to look up the error number.
-
Thanks. That's the problem. By releasing the NSData PDFPage returns, the
program now consumes half the memory.
But still, the memory it consumes keeps increasing and yet I cannot
figure out why...
On Wed, Sep 9, 2009 at 2:17 AM, John Calhoun calho...@apple.com wrote:
On Sep 8, 2009, at
On Sep 8, 2009, at 18:03, Alex Reynolds wrote:
Relationship fault for (NSRelationshipDescription: 0x3d1b2b0),
name Book, isOptional 1, isTransient 0, entity Owner,
renamingIdentifier Book, validation predicates (
), warnings (
), versionHashModifier (null), destination entity Book,
On Sun, Sep 6, 2009 at 9:20 PM, Quincey Morris
quinceymor...@earthlink.netwrote:
On Sep 6, 2009, at 17:36, John Engelhart wrote:
So, since the Mac OS X documentation uses the term interior pointer in a
totally non-standard way, and I can't find anything wrt/ to what I'm looking
for, my
Hello!
I updated my Mac from 10.5 to 10.6 yesterday.
Using the app I developed under 10.5 with a Core Data SQLite store
created under 10.5 I get the following error under 10.6:
I/O error for database at /Users/norbert/Library/Application Support/
Grosshandel/Grosshandel.grosshandelstore.
Hi all,
I've an NSTableView that uses the controller object for the NIB being
displayed as the data source. I implement the NSTableView informal protocol.
This NSTableView gets its values from Core Data. I startup the application,
load all values I have in XML and then display them.
My problem
you can customize the phone pad, or any of the UIKeyboards by creating
and drawing your own buttons/views over them. it's a hack, but it can
work quite nicely if you're interested in some minimal customization
(for example: changing the Go or Done button to display Login
or Save). best results
Hi all. I'm just getting into my first garbage collected Cocoa
project, and I'm a bit mystified by the behavior I'm seeing. I'm just
trying to make a custom about panel. I put this method in my
application delegate:
- (IBAction)orderFrontAboutPanel:(id)sender
{
if
Of course. I wasn't thinking straight. Sorry for the misinformation.
On Tue, Sep 8, 2009 at 6:33 PM, Greg Parker gpar...@apple.com wrote:
On Sep 8, 2009, at 3:25 PM, Brent Gulanowski wrote:
For selectors, you can check whether NSSelectorFromString(@selector)
returns a selector.
That won't
Hard to know sans code ... are you calling
dequeReusableCellWithIdentifier in your cellForRowAtIndexPath: method?
On Sep 7, 2009, at 8:10 PM, Development wrote:
Ok I have the weirdest UITableViewBug..
I've set up the delegate, datasource, etc. My data appears correctly
in the table.
Hi all,
Question: is it unsafe for some reason to be adding yourself as a KVO
observer during -init?
We have a singleton with an -init that looks something like this:
- (id)init
{
if ((self = [super init]))
{
_foo = [[NSMutableDictionary alloc] init];
_bar = [[NSMutableDictionary alloc] init];
My goal is to have an NSOutlineView (Source List style) that contains group
items at it's root with each group item corresponding to a Core Data entity
type (which I'll hard code, it doesn't need to automatically adapt to new
entity types). I'd then like those group items to contain leaves for
On Sep 7, 2009, at 21:45 , Edward Chan wrote:
Great...
How long ago did you ask the Apple engineers? I haven't tried this
piece of code with Snow Leopard actually...
This was back in February, I was probably testing on Leopard. The
difference between what you and I tried was that I used -
I'm working on an app that uses Audio Queue Services for recording
audio. I have the following lines in my code:
OSStatus err;
UInt32 propertySize;
AudioQueueRef myQueue = [self audioQueue];
err = AudioQueueGetPropertySize(myQueue,
kAudioQueueProperty_MagicCookie, propertySize);
I'm
On Sep 7, 2009, at 20:02 , Edward Chan wrote:
Hello,
I'm using KVO on a Distributed Object, and I am binding my UI controls
based on the observer.
Hi,
not much of constructive help from me I'm afraid, just a warning. I
also did the same thing once, and the reaction from Apple engineers
Find a web service that reverse geocodes what you want and use their
api's. If you're still unsure there are books on the market that will
walk you through the concepts.
Some research for you:
http://groups.google.com/group/Google-Maps-API/web/resources-non-google-geocoders?pli=1
Alan K
XCode automatically adds the Special Characters... menu item to
applications, but mine doesn't need it, so I'd like to leave it off.
Mac OS X Developer Release Notes: Cocoa Application Framework (10.5
and Earlier) contains the following
AppKit now adds Special Characters... menu item to the
John Chang wrote:
Hi all,
Question: is it unsafe for some reason to be adding yourself as a KVO
observer during -init?
We have a singleton with an -init that looks something like this:
- (id)init
{
if ((self = [super init]))
{
_foo = [[NSMutableDictionary alloc] init];
_bar =
Hi all,
I'm trying to convert my program with PDFKit to CGPDF to get better
performance. I'm trying to crop a page, with PDFPage I can simply do:
[PDFPage setBounds: forBox:kPDFDisplayMediaBox];
But for CGPDFPageRef, there seems to be only a CGPDFPageGetBoxRect
available. I wonder if I can
On Mon, Sep 7, 2009 at 9:36 AM, John Changjohn.r.ch...@gmail.com wrote:
This code is running on iPhone OS. On some devices (we haven't been to
narrow this down), the last line of code is throwing an exception:
Sun Sep 6 13:41:26 unknown MyApp[1609] Error: *** Terminating app due to
uncaught
On Sep 7, 2009, at 3:35 PM, Andrew Madsen wrote:
My app doesn't crash, and everything seems to work OK, but I'm
trying to figure out what this means. This is my first garbage
collected app, so I'm guessing there's something about the
intricacies of actually using garbage collection that
On Sep 8, 2009, at 6:45 PM, Ben Haller wrote:
My idea — perhaps being too clever for my own good — was that as
long as the about window was open, the window would be referenced by
the window list, and so the window and its controller would stick
around. Choosing the About menu item a
Hi all,
I have two arrays initalized as follows, the first works fine and I
can work with elements in the Array
NSArray *majorScaleQuestions = [[NSArray alloc] initWithObjects:@1,
@2, @b3, @3, @4, @5, @b6, @6, @7, nil];
the second throws up an EXEC_BAD_ACCESS and the application obviously stops
Rui,
Generally you don't use the data source method of filling up an
NSTableView when you use Core Data. Doing so would require you to observe
changes to the Managed Object Context, and reload the table manually.
Instead, you would usually use an NSArrayController in your NIB instead, and
use
On Sep 7, 2009, at 6:54 PM, H David Goering h...@cox.net wrote:
Incidentally, can anyone explain why this particular menu item is
exalted?
Because it's the only way to enter certain characters. If I want to
turn on certain ligatures or drop math symbols into a text field, I
have to use
On Sep 8, 2009, at 8:00 PM, Luke the Hiesterman luket...@apple.com
wrote:
That is an EXTREMELY fragile approach. Chunk mentioned the
international keyboard issue, but there's also the issue of software
updates. Keyboards are subject to change with new releases. You
should never overlay
On 08/09/2009, at 12:36 AM, John Chang wrote:
Hi all,
Question: is it unsafe for some reason to be adding yourself as a KVO
observer during -init?
We have a singleton with an -init that looks something like this:
- (id)init
{
if ((self = [super init]))
{
_foo = [[NSMutableDictionary alloc]
Hey Brent, thanks that helps. This leads me to one more question.
Let's say I build my framework with two versions, A and B - A is the
base and B includes only the 10.6 features.
Is there a way in xcode to specifically tell the linker that it's it's
linking against A or B? The reason I ask is
Hi John,
Since you're passing NSKeyValueObservingOptionInitial,
-observeValueForKeyPath: is going to be invoked on your object immediately,
before the method even returns.
Is your -observeValueForKeyPath: safe to be called with a partially set up
object?
Do you have any subclasses of your
IOReturnkernErr;
You never seem to check for errors. Please ensure
your calls are
succeeding by checking the value of this variable. If
they're
failing, use macerror(1) to look up the error number.
IOServiceAddMatchingNotification() returns no errors (0).
-
For some reason, I really doubt that the creation of the NSArray is causing
this exception. Have you run this through the debugger and verified this is
the exact line that throws the exception? And is that the exact line of
code?
--
Steven Degutis
http://www.thoughtfultree.com/
On 08/09/2009, at 11:54 AM, H David Goering wrote:
1. Set NSDisabledCharacterPaletteMenuItem. I do not find this
setting, or anything relevant, in XCode.
This means you need to add this to your application's preferences
(user defaults). I just tried that and it works.
--Graham
On Sep 7, 2009, at 4:35 PM, Andrew Madsen wrote:
My app doesn't crash, and everything seems to work OK, but I'm
trying to figure out what this means. This is my first garbage
collected app, so I'm guessing there's something about the
intricacies of actually using garbage collection that
Not really a Cocoa question, and it's answered in the docs on
IOServiceAddMatchingNotification :)
The notification is armed when the iterator is emptied by calls
to IOIteratorNext - when no more objects are returned, the
notification is armed. Note that the notification is not armed when
On Sep 7, 2009, at 7:54 PM, H David Goering wrote:
XCode automatically adds the Special Characters... menu item to
applications, but mine doesn't need it, so I'd like to leave it off.
That menu item cannot be turned off.
Nick Zitzmann
http://www.chronosnet.com/
That is an EXTREMELY fragile approach. Chunk mentioned the
international keyboard issue, but there's also the issue of software
updates. Keyboards are subject to change with new releases. You should
never overlay views on top of the built-in keyboard. If you really
want custom stuff, write
On 09/09/2009, at 2:11 PM, H David Goering wrote:
I'm new with XCode. I don't find application preferences or user
defaults in the XCode UI, the project, or the documentation. I
don't find anything that looks relevant in the XCode preferences or
in the project setting.
It's got
1 - 100 of 103 matches
Mail list logo