Send Cocoa-dev mailing list submissions to
email@hidden
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/cocoa-dev
or, via email, send a message with subject or body 'help' to
email@hidden
You can reach the person managing the list at
email@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Cocoa-dev digest..."
Today's Topics:
1. Re: When exactly does a fault get fired? (mmalcolm crawford)
2. Debugger: invalide NSString * (Raphael)
3. Re: Debugger: invalide NSString * (Raphael)
4. Re: Selection in NSTableView during
windowControllerDidLoadNib w/ CoreData+bindings
(email@hidden)
5. Crashing Cross-Development or... What is a Prefix File
(Robert Clair)
6. Re: Crashing Cross-Development or... What is a Prefix File
(Scott Thompson)
7. Re: When exactly does a fault get fired? (Chris Hanson)
8. Xcode Ref Library Viewer (email@hidden)
9. Re: When exactly does a fault get fired? (mmalcolm crawford)
10. [Moderaotr] EOT Re: Xcode Ref Library Viewer (mmalcolm crawford)
11. Checking for internet connection? (Paul J. Lucas)
12. Re: Checking for internet connection? (Greg Herlihy)
13. Re: Debugger: invalide NSString * (j o a r)
14. Re: How to load a special nib file in cocoa? (Omar Qazi)
15. Re: NSCComboBox Question (Mike Abdullah)
16. NSLevelIndicatorCell (email@hidden)
----------------------------------------------------------------------
Message: 1
Date: Fri, 17 Feb 2006 02:44:28 -0800
From: mmalcolm crawford <email@hidden>
Subject: Re: When exactly does a fault get fired?
To: Cocoa Dev <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
On Feb 17, 2006, at 12:51 AM, email@hidden wrote:
If an entity has a attribute that is in the data model and has an
accessor for it, when a call to the accessor occurs, does the fault
fire exactly when the call [object valueForKey:@"Key"] gets sent,
or, in the custom method, does the fault stay un-fired until I call
[self willAccessValueForKey:@"Key"] or [self
primitiveValueForKey:@""]....
<http://developer.apple.com/documentation/Cocoa/Reference/
CoreData_ObjC/Classes/NSManagedObject.html#//apple_ref/occ/instm/
NSManagedObject/willAccessValueForKey:>
mmalc
------------------------------
Message: 2
Date: Fri, 17 Feb 2006 12:28:06 +0100
From: Raphael <email@hidden>
Subject: Debugger: invalide NSString *
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Hi,
I have a class that I init like all the other custom classes.
In this case I initWithString:(NSString *)string
In this funktion I set a string variable with string arg
this way :
self = [super init];
[string retain];
mystring = [[NSString alloc]initWithString:arg];
return self
When I init the class, the compiler popup.
In variable table the myString from the the called class is "NSString
* Summary: invalid"
What does that mean?
thanks & regrads,
raphael
------------------------------
Message: 3
Date: Fri, 17 Feb 2006 13:06:41 +0100
From: Raphael <email@hidden>
Subject: Re: Debugger: invalide NSString *
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed
Hi,
I have found the bug but please don´t laugh, I only have reaname the
class,
and every thing is working fine!!
Could this be a bug in Xcode?
Thanks & regards,
raphael
Am 17.02.2006 um 12:28 schrieb Raphael:
Hi,
I have a class that I init like all the other custom classes.
In this case I initWithString:(NSString *)string
In this funktion I set a string variable with string arg
this way :
self = [super init];
[string retain];
mystring = [[NSString alloc]initWithString:arg];
return self
When I init the class, the compiler popup.
In variable table the myString from the the called class is
"NSString * Summary: invalid"
What does that mean?
thanks & regrads,
raphael
------------------------------
Message: 4
Date: Fri, 17 Feb 2006 07:59:21 -0500
From: email@hidden
Subject: Re: Selection in NSTableView during
windowControllerDidLoadNib w/ CoreData+bindings
To: mmalcolm crawford <email@hidden>
Cc: Cocoa Users <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
mmmalc,
If ever there were an MVP on a mailing list -- it would be you. I
think I speak for everyone when I say, you the man!
M.
On Feb 17, 2006, at 3:27 AM, mmalcolm crawford wrote:
On Feb 16, 2006, at 9:46 PM, email@hidden wrote:
Ok, so I can understand that CoreData is going to do lazy loading,
which means that I probably can't expect anything to be guaranteed
about my table in windowControllerDidLoadNib, which also explains
my problems getting a selection, and I've sort of learned my
lesson. However, what I've tried that does work is adding a little
timer in windowControllerDidLoadNib that delays a second, and then
makes the selection.
<http://lists.apple.com/archives/Cocoa-dev/2006/Feb/msg00471.html>
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
M.
------------------------------
Message: 5
Date: Fri, 17 Feb 2006 09:20:28 -0500
From: Robert Clair <email@hidden>
Subject: Crashing Cross-Development or... What is a Prefix File
To: Cocoa List <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
<Obligatory Statement Of Defeat>
"I give up."
</OSOD>
My app compiled and ran on 10.3.
It compiles and runs on 10.4.
I'm trying to make compatibility build.
It runs on 10.4 but crashes instantly with EXC_BAD_ACCESS on 10.3.9
(trying to instantiate the application delegate from the main nib).
After a review of the docs and the archives...
I've got the Deployment Target set to 10.3.
I've got the SDK set to 10.3.9.
I read the docs again. Perhaps this is my problem:
For each target, supply a prefix file that takes into account the
selected SDK. To use an umbrella framework header from an SDK as your
prefix file, add the appropriate #include <Framework/Framework.h>
directive to your target's prefix file, instead of setting a Prefix
Header path to the umbrella framework header directly.
I seem not to have a prefix file (or it is very well hidden). I would
dearly love to supply one and get on
with things but...
What is it ? What's in it and in what form ? Do I order one from the
ACME company ?
The only mention of the phrase "prefix file" in the entire 452 page
Xcode manual is in the above paragraph.
What do I have to do do learn the secret handshake ?
.....Bob
------------------------------
Message: 6
Date: Fri, 17 Feb 2006 10:33:10 -0600
From: Scott Thompson <email@hidden>
Subject: Re: Crashing Cross-Development or... What is a Prefix File
To: Robert Clair <email@hidden>
Cc: Cocoa List <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
On Feb 17, 2006, at 8:20 AM, Robert Clair wrote:
<Obligatory Statement Of Defeat>
"I give up."
</OSOD>
My app compiled and ran on 10.3.
It compiles and runs on 10.4.
I'm trying to make compatibility build.
It runs on 10.4 but crashes instantly with EXC_BAD_ACCESS on 10.3.9
(trying to instantiate the application delegate from the main nib).
After a review of the docs and the archives...
I've got the Deployment Target set to 10.3.
I've got the SDK set to 10.3.9.
I read the docs again. Perhaps this is my problem:
For each target, supply a prefix file that takes into account the
selected SDK. To use an umbrella framework header from an SDK as
your prefix file, add the appropriate #include <Framework/
Framework.h> directive to your target's prefix file, instead of
setting a Prefix Header path to the umbrella framework header
directly.
I seem not to have a prefix file (or it is very well hidden). I
would dearly love to supply one and get on
with things but...
What is it ? What's in it and in what form ? Do I order one from
the ACME company ?
The only mention of the phrase "prefix file" in the entire 452 page
Xcode manual is in the above paragraph.
What do I have to do do learn the secret handshake ?
The prefix file is a header that the system automatically includes at
the top of every file it compiles. You set the prefix file (a.k.a.
Prefix Header) in the build settings for your project, target, or
configuration.
Scott
------------------------------
Message: 7
Date: Fri, 17 Feb 2006 08:41:58 -0800
From: Chris Hanson <email@hidden>
Subject: Re: When exactly does a fault get fired?
To: Andre <email@hidden>
Cc: Cocoa Dev <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
On Feb 17, 2006, at 2:14 AM, Andre wrote:
Here's my reason. I'm working on a way to have a specific entity,
that is accessed by a key that names it. So, the entity actually
may contain a binary data or a large blob of text. Since I choose
the object I want based on its "name" set a runtime (not the entity
name), I want to scan through the set of items and get the one with
the name I want, without tripping up the fault, as this can be very
slow if there were a lot of objects to go over... imagine going
through a list of 40+ objects, and some may have large RAW images
attached, then coredata needs to fetch each one out of the
persistent store just to find its name...... seems pretty
inefficient.
You can use a predicate on a fetch request to do this efficiently, so
long as the possible objects you might fetch are all instances of the
same entity.
-- Chris
------------------------------
Message: 8
Date: Fri, 17 Feb 2006 12:08:53 -0500
From: email@hidden
Subject: Xcode Ref Library Viewer
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Is it just me or is the documentation viewer included in Xcode 2.2.1
not working properly?
When looking at Foundation Reference for Objective-C html pages, the
back arrow doesn't go back to a previous spot in the page but to a
previous page (looks like it doesn't take html bookmarks in
consideration).
Even more annoying and probably related, choosing on the the
bookmarks in the symbol drop down list (next to the page drop down
list) does nothing.
Anyone else experiencing this?
Henry Kirkbride
------------------------------
Message: 9
Date: Fri, 17 Feb 2006 09:10:02 -0800
From: mmalcolm crawford <email@hidden>
Subject: Re: When exactly does a fault get fired?
To: Cocoa Dev <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
On Feb 17, 2006, at 8:41 AM, Chris Hanson wrote:
On Feb 17, 2006, at 2:14 AM, Andre wrote:
Here's my reason. I'm working on a way to have a specific entity,
that is accessed by a key that names it. So, the entity actually
may contain a binary data or a large blob of text [...]
You can use a predicate on a fetch request to do this efficiently,
so long as the possible objects you might fetch are all instances
of the same entity.
See also <http://developer.apple.com/documentation/Cocoa/Conceptual/
CoreData/Articles/cdPerformance.html#//apple_ref/doc/uid/TP40003468-
SW5>.
mmalc
------------------------------
Message: 10
Date: Fri, 17 Feb 2006 09:13:57 -0800
From: mmalcolm crawford <email@hidden>
Subject: [Moderaotr] EOT Re: Xcode Ref Library Viewer
To: Cocoa Dev <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
On Feb 17, 2006, at 9:08 AM, email@hidden wrote:
Is it just me or is the documentation viewer included in Xcode
2.2.1 not working properly?
Please take this to the Xcode list:
<http://lists.apple.com/mailman/listinfo/xcode-users>
mmalc
------------------------------
Message: 11
Date: Fri, 17 Feb 2006 09:24:01 -0800 (PST)
From: "Paul J. Lucas" <email@hidden>
Subject: Checking for internet connection?
To: email@hidden
Message-ID: <email@hidden>
Content-Type: TEXT/PLAIN; charset=US-ASCII
Is there any way to check to see if there is an active internet
connection?
- Paul
------------------------------
Message: 12
Date: Fri, 17 Feb 2006 09:41:48 -0800
From: Greg Herlihy <email@hidden>
Subject: Re: Checking for internet connection?
To: "Paul J. Lucas" <email@hidden>, <email@hidden>
Message-ID: <C01B4ADC.7876%email@hidden>
Content-Type: text/plain; charset="US-ASCII"
I'm not sure about a Cocoa API, but Core Foundation's System
Configuration
Framework's "Reachability" API can tell you:
http://developer.apple.com/documentation/Networking/Conceptual/
SystemConfigF
rameworks/SC_ReachConnect/chapter_5_section_4.html
Greg
On 2/17/06 9:24 AM, "Paul J. Lucas" <email@hidden> wrote:
Is there any way to check to see if there is an active internet
connection?
- Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
------------------------------
Message: 13
Date: Fri, 17 Feb 2006 19:05:58 +0100
From: j o a r <email@hidden>
Subject: Re: Debugger: invalide NSString *
To: Raphael <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset="iso-8859-1"
On 17 feb 2006, at 12.28, Raphael wrote:
[string retain];
Just "retain"? Is it not assigned anywhere?
mystring = [[NSString alloc]initWithString:arg];
What is the type and value of "arg"?
When I init the class, the compiler popup.
Popup?
On 17 feb 2006, at 13.06, Raphael wrote:
I have found the bug but please don´t laugh, I only have reaname
the class,
and every thing is working fine!!
What was the name of your class before you renamed it? What is it a
subclass to?
j o a r
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2380 bytes
Desc: not available
Url : http://lists.apple.com/pipermail/cocoa-dev/attachments/
20060217/6caa6d45/smime.bin
------------------------------
Message: 14
Date: Fri, 17 Feb 2006 10:31:11 -0800
From: Omar Qazi <email@hidden>
Subject: Re: How to load a special nib file in cocoa?
To: j o a r <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed
joar is right, if MyObject is in your secondary nib file it could
cause an infinite loop. Sorry about that.
On Feb 16, 2006, at 11:00 PM, j o a r wrote:
On 17 feb 2006, at 07.26, Omar Qazi wrote:
Then just add it to the awakeFromNib method
i.e.
- (void)awakeFromNib
{
//...Do Anything you need to do before loading the nib here
[NSBundle loadNibNamed:@"Your Nib" owner:NSApp];
}
Hm... This seems a bit dangerous to me - couldn't you end up with
an infinite loop? To have "NSApp" as the owner would also not
always be appropriate.
Also, it doesn't solve the problem with dynamically loading the
second nib on demand, and not always.
On 17 feb 2006, at 07.07, é 立群(Gordon.Wei) wrote:
But, where should I add this line?
The answer to that question is of course really simple. You would
add that line to the place in your code where you've found out that
you need to load the second nib file.
j o a r
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40roflsoftware.com
This email sent to email@hidden
------------------------------
Message: 15
Date: Fri, 17 Feb 2006 19:25:05 +0000
From: Mike Abdullah <email@hidden>
Subject: Re: NSCComboBox Question
To: Jeff Laing <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Hmm, you're right, it does close. Guess you'll just have to keep
double-clicking it.
I might file this as a bug/enhancement request then.
Mike.
On 16 Feb 2006, at 23:24, Jeff Laing wrote:
* Drag an NSPopUpButton onto your window and select it.
* Press Command-1 to bring up the attributes for the button.
* In the Inspector window that should now be visible, change the
button's type to PullDown
* Double-click on the pulldown button itself, this should
bring up
its menu
* From the Cocoa-Controls panel go to the menus area
* Now you can simply drag on and off of the button as many menu
"Item"s as you like. To editor an item just double-click it.
Is it just me, or does "as you like" not quite describe it. For
me, it
seems that the menu snaps shut again whenever you drag a new item
into it,
with the new item as the selected one.
ie, if you want to add five items, you will go through five
iterations of
"double-click to open, then drag new item from palette"
------------------------------
Message: 16
Date: Fri, 17 Feb 2006 19:57:43 +0000
From: email@hidden
Subject: NSLevelIndicatorCell
To: email@hidden
Message-ID:
<021720061957.14549.43F62AB70001FE16000038D52207021553C7CCC0CFCD089B07
email@hidden>
Content-Type: text/plain
I am using an NSLevelIndicatorCell in an NSTableView and I have not
been able to make the cell uneditable. Even when I make the column
uneditable it does not work. If I make the Class
(NSMutableDictionary) it is bound to an (NSDictionary) I get errors
that it is trying to modify a non-mutable class. But at least the
display does not change. I want this to be a read-only column,
that the user cannot change. How do I do that? I have been
unsuccesful in all attempts and do not want to create a new
subclass of NSMutableDictionary that ignores updates. It would
seem that creating a read-only level indicator would be a common
usage. Has anyone else had this problem? Any solutions?
------------------------------
_______________________________________________
Cocoa-dev mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/cocoa-dev
End of Cocoa-dev Digest, Vol 3, Issue 227
*****************************************