On May 16, 2008, at 7:43 AM, Laurent Cerveau wrote:
If I have a PDF View , select part of it and get the
currentSelection, showing it tells something like
Page index = 2, Range = (0, 21]
However I do not see where I could get the range of the PDFSelection
and later recreate a selection with
Hello guys,
My app uses a custom NSURLProtocol class. However I've found it's
bugged when used with Garbage Collector activated. It seems to be a
know issues (look herE: http://www.cocoabuilder.com/archive/message/cocoa/2007/12/17/195056)
since december 2007 but no one at apple has fixed it
hi,
I've to convert text or image to its corresponding html code.
i've done
setContentType: @"text/html";
setContentTransferEncoding:None;
setCharset: @"us-ascii"
NSDictionary*attr = [NSDictionary
dictionaryWithObject:NSHTMLTextDocumentType
forKey:NSDocumentTypeDocumentAttribute];
NSAtt
Thanks For the reply Kyle
On 16 May 2008, at 06:43, Kyle Sluder wrote:
On Thu, May 15, 2008 at 5:30 PM, <[EMAIL PROTECTED]> wrote:
It would seem that NSDictionaryController keys have to be strings.
Yes. It is very common that, despite NSDictionary accepting any
object as a key, you must us
Thanks for the reply Shawn
One of the big attractions of the bindings technology is that the
sorting behaviour is automatic and normally pretty satisfactory.
But I agree that in this case manually manipulating the sort
descriptors could be a good solution.
Jonathan
On 16 May 2008, at 07:05
Yes, they all display it in a different way, and why is it a problem ?
What does it prevent you to do?
Le 16 mai 08 à 07:02, JanakiRam a écrit :
When i perform ls command it shows file name as "Icon?". When i
perform cp command & tab it shows the file name as "Icon^M".
Why Terminal does s
I don't mean to be mean, but I agree with Joseph; most Apple
documentation is really, really poor.
*No, that's not correct.* The documentation is extensive, and
comprehensive, but unless you already know what you are reading about,
it might as well have been written in Farsi (no offense meant to
On 05/15/2008 17:56 Jens Alfke wrote ..
"...You should call [NSApp terminate: self] instead. "
I did that; and repeated it.
I'm running in debug mode. The program "works" till I QUIT via [NSApp
terminate:self].
Now I'm getting (via gdb console {Running as a Cocoa App on my MacBookPro):
Runni
> I have found this to be true on most every product's documentation; not
> just X Code. It is easily understood after five years of experience.
> The beginner struggles with the concepts, the locutions, the native
> phrases that the experienced programmer understands.
I feel the need to chime
Hello List
I have been using NSTableView -setCornerView: to provide additional
drag thumb image views for tables embedded in splitviews.
Has anyone found it possible to do the same thing in the bottom right
hand corner of a table as opposed to the top?
Obviously there is no NSTableView -set
On Fri, May 16, 2008 at 9:30 PM, john darnell
<[EMAIL PROTECTED]> wrote:
> I don't mean to be mean, but I agree with Joseph; most Apple
> documentation is really, really poor.
>
> *No, that's not correct.* The documentation is extensive, and
> comprehensive, but unless you already know what you ar
On Fri, May 16, 2008 at 6:02 AM, JanakiRam <[EMAIL PROTECTED]> wrote:
> When i perform ls command it shows file name as "Icon?". When i perform cp
> command & tab it shows the file name as "Icon^M".
> Why Terminal does show different names for the same file.
Because the filename contains a non-pr
Sigh. Your attitude reminds me of a conversation I once had with a
fellow programmer. When I was encouraging her to add more documentation
to the code, she replied, jokingly, "If it was hard for me to write,
then it should be hard for them to read."
The sad thing is that you are not joking...
I'm using -defaultActionForKey: to add an animation when a sublayer is
removed from its parent. My animation is never used and instead the
sublayer fades out (which I assume is the default). But if I add the
animation to kCAOnOrderIn it works as I expect.
My sublayer class's defaultActionForKey: i
> Sigh. Your attitude reminds me of a conversation I once had with a
> fellow programmer. When I was encouraging her to add more documentation
> to the code, she replied, jokingly, "If it was hard for me to write,
> then it should be hard for them to read."
>
> The sad thing is that you are not j
When i give this filename as part of rsync source file ( using --files-from
) , rsync is treating this filename as 2 different file names , because
rsync expects each filen name separated by \r.
Hence my rsync command is failing
JanakiRam.
On Fri, May 16, 2008 at 5:42 PM, Jean-Daniel Dupas <
On May 16, 2008, at 9:30 AM, john darnell wrote:
I don't mean to be mean, but I agree with Joseph; most Apple
documentation is really, really poor.
*No, that's not correct.* The documentation is extensive, and
comprehensive, but unless you already know what you are reading about,
it might as w
On Fri, May 16, 2008 at 10:19 PM, john darnell
<[EMAIL PROTECTED]> wrote:
>
> Sigh. Your attitude reminds me of a conversation I once had with a
> fellow programmer. When I was encouraging her to add more documentation
> to the code, she replied, jokingly, "If it was hard for me to write,
> then
I needed to modify the default 'GET' Response of the NSURLRequest to a 'POST'...
So I changed 'NSURLRequest' to a 'NSMutableURLRequest' to modify the HTTPMethod:
// ---
// 2) Create the request.
NSMutableURLRequest *theRequest=[NSMutableURLRequest
reques
On Fri, May 16, 2008 at 3:28 PM, JanakiRam <[EMAIL PROTECTED]> wrote:
> When i give this filename as part of rsync source file ( using --files-from
> ) , rsync is treating this filename as 2 different file names , because
> rsync expects each filen name separated by \r.
> Hence my rsync command is
On May 16, 2008, at 3:58 PM, [EMAIL PROTECTED] wrote:
Hello List
I have been using NSTableView -setCornerView: to provide additional
drag thumb image views for tables embedded in splitviews.
Has anyone found it possible to do the same thing in the bottom
right hand corner of a table as o
On 16 May '08, at 7:19 AM, john darnell wrote:
Sigh. Your attitude reminds me of a conversation I once had with a
fellow programmer. When I was encouraging her to add more
documentation
to the code, she replied, jokingly, "If it was hard for me to write,
then it should be hard for them to
Your code is crashing because you have numerous pointer and memory
management issues.
On Thu, May 15, 2008 at 4:21 PM, <[EMAIL PROTECTED]> wrote:
> - (IBAction)startSOAP:(id)sender {
>NSError **myError;
NSError *myError;
>NSHTTPURLResponse **serverResponse;
NSHTTPURLResponse *serverResp
To set the record straight, I am going through two Cocoa books as we
speak. (FYI, the books are O'Reilly's "Cocoa with Objective-C" and
Hillegass' "Cocoa Programming for Mac OSX") I, too recognize the value
of outside tutorials. I would point out that both books encourage the
programmer to read t
> And, what I hear from this august crowd is a consensus that the
> references are difficult to understand, but necessarily so--that they
> ought to be that way. This is a debate that has been going on since I
> bought my first CP/M computer back in the early eighties. I doubt we
> will resolve i
On 15 May 2008, at 14:40, [EMAIL PROTECTED] wrote:
From: Michael Vannorsdel <[EMAIL PROTECTED]>
Subject: Re: Dynamic message typing problem
This block is probably causing some corruption. You're assigning 123
to a uchar pointer and not the uchar, then passing the address of a
pointer to a meth
Tutorial examples don't really belong in API docs. Their ultimate
goal is to state the purpose and usage as directly as possible so the
developer can get what they need and move on. Continuously sifting
through tutorial information and examples would be quite tedious and
redundant for the
This works like a charm except for one thing. After I register my
handler, it gets requests to load a new URL as expected the app is
already running. If the app isn't running, I see the dock slide over
slightly like it's about to open a new bundle, then it slides back and
the app doesn't open. If I
On 16 May '08, at 7:57 AM, john darnell wrote:
And, what I hear from this august crowd is a consensus that the
references are difficult to understand, but necessarily so--that they
ought to be that way.
I see your point, but I think you're phrasing it in a way that sounds
overly contentious
Thanks for the reply Stéphane.
I was thinking that it might be tricky. One of those things that could
unexpectedly consume a lot of time.
It's a small feature but it would solve the problem that one of my
views can get dragged out of view and there's no splitter visible to
drag it back with
I've tried the code here and it works as expected. Could you give
more detail on your build setup? Like what arch you're building for,
how you're executing the program, if you're executing code other than
this, if this is actually running as a plugin or loaded bundle.
On May 16, 2008, at
Am 14.05.2008 um 00:32 schrieb "dan sinclair" <[EMAIL PROTECTED]>:
I was playing a bit with Cocoa and full screen and I wrote a quick
blog
entry about it: http://everburning.com/news/going-fullscreen-with-
medium/
I'm not sure if it's the correct way, or the best way, but it does
seem to
w
On 16 May '08, at 8:57 AM, Matthew Gertner wrote:
After I register my
handler, it gets requests to load a new URL as expected the app is
already running. If the app isn't running, I see the dock slide over
slightly like it's about to open a new bundle, then it slides back and
the app doesn't op
On 16 May '08, at 7:28 AM, JanakiRam wrote:
When i give this filename as part of rsync source file ( using --
files-from
) , rsync is treating this filename as 2 different file names ,
because
rsync expects each filen name separated by \r.
Then it sounds like the author of rsync didn't tak
On 16 May '08, at 3:42 AM, [EMAIL PROTECTED] wrote:
NSAttributedString*textValue = [[NSAttributedString alloc]
initWithString: [self messageField]];//where messageField returns
string.
That's going to produce an attributed string with no text styles at
all, because all you gave it was
How are you invoking rsync? With NSTask or system()?
On May 16, 2008, at 8:28 AM, JanakiRam wrote:
When i give this filename as part of rsync source file ( using --
files-from
) , rsync is treating this filename as 2 different file names ,
because
rsync expects each filen name separated by
Thanks Jens, I managed to find the problem in the console. It's
related to the fact that my bundle references a framework in another
bundle. It seems like it wasn't finding this framework since I hadn't
run the other bundle yet. I guess this is why rebuilding the Launch
Services database fixed the
Hi,
I have a bit of Cocoa work available that a someone from this list may be
interested in. It'd be a very limited number of hours - a couple weekends
maybe, just making some fairly straight-forward modifications to existing
Cocoa apps to which the source and clear instructions will be provided. A
On Fri, 16 May 2008 10:12:24 -0600 Michael Vannorsdel wrote
I've tried the code here and it works as expected. Could you give
more detail on your build setup? Like what arch you're building for,
This is running as stand alone app. on Mac Pro 10.5.2
how you're executing the program,
From X
On Fri, May 16, 2008 at 10:49 AM, Stéphane <[EMAIL PROTECTED]> wrote:
> This might not be that easily possible as the positions of the views inside
> the scrollview are recomputed quite often and your bottom corner view would
> be ignored by this code. So this would require subclassing some code in
I got the impression it wasn't his ticket, he just saw that on eBay
and posted it as a "wow" type thing.
On May 16, 2008, at 1:05 AM, [EMAIL PROTECTED] wrote:
Date: Fri, 16 May 2008 02:03:04 -0400
From: Scott Anguish <[EMAIL PROTECTED]>
Subject: [MODERATOR] Re: WWDC ticket needed
To: Hal Muel
On May 16, 2008, at 10:50 AM, Jens Alfke wrote:
but there are still a lot of concepts and details to learn, and many
times their topology does not reduce to a directed acyclic graph
(i.e. you can't present them in order without forward references.)
Jens, I was going to bring up the concept o
Hello, I'm having trouble determining the best path to follow.
Here's the schema in a nutshell:
[Mac < XML/SOAP -> Server]
.. where an HTTP Post connection is created and a post/reply is synchronously
generated.
I want to use Cocoa to do the equivalent in Java:
StreamConnection xmlst
> - (void) callPrintConstFloat:(id)pId {
> [pId printFloat:98.76]; // pId is object of
> class AnonTargetClass
> }
This is probably compiled in file which does not include the declaration of
class AnonTargetClass, so the compiler assumes that printFloat takes an int,
casts
On 16 May '08, at 10:59 AM, [EMAIL PROTECTED] wrote:
Do I use NSURLConnection to actually TRANSMIT & RECEIVE XML data to
the Server like this?
serverData = [NSURLConnection sendSynchronousRequest:theRequest
returningResponse:serverResponse
I should add...
Does the NSMutableURLRequest actually send the XML data to the server?
Via the NSMutableURLRequest class, I can alter the HTTP Body, etc.
However, I need to send a SOAP/XML envelope & receive a XML response.
I don't see where in the NSNetworking docs that I can send a SOAP/XML to
> Forward references are what the concepts docs are for, but for some
> reason, they don't seem to be serving that purpose for some people.
> I'm not sure why.
I get the feeling that some people never notice the "Companion Guides"
section at the top of the class references. They're right there at
On 05/16/2008 11:18 Jens Alfke wrote ..
>
> On 16 May '08, at 10:59 AM, [EMAIL PROTECTED] wrote:
>
> > Do I use NSURLConnection to actually TRANSMIT & RECEIVE XML data to
> > the Server like this?
> >
> > serverData = [NSURLConnection sendSynchronousRequest:theRequest
> >
On Fri, May 16, 2008 at 1:11 PM, <[EMAIL PROTECTED]> wrote:
> I should add...
>
> Does the NSMutableURLRequest actually send the XML data to the server?
>
> Via the NSMutableURLRequest class, I can alter the HTTP Body, etc.
> However, I need to send a SOAP/XML envelope & receive a XML response.
>
Once again Kyle, thanks.
This looks like just the ticket.
On 16 May 2008, at 18:15, Kyle Sluder wrote:
On Fri, May 16, 2008 at 10:49 AM, Stéphane <[EMAIL PROTECTED]> wrote:
This might not be that easily possible as the positions of the
views inside
the scrollview are recomputed quite often an
Ahhh!
Okay... I'm trying to envision how this would work. I'm essentially working
with a 'black box' (the Server).
The server is waiting for SOAP/XML data & shall respond accordingly.
So you're saying that I should do something like this:
..
NSData *soapData = in NSData format.
..
[NSMutableUR
On Fri, May 16, 2008 at 1:53 PM, <[EMAIL PROTECTED]> wrote:
> Ahhh!
> Okay... I'm trying to envision how this would work. I'm essentially working
> with a 'black box' (the Server).
> The server is waiting for SOAP/XML data & shall respond accordingly.
>
> So you're saying that I should do somet
On 16 May '08, at 11:11 AM, [EMAIL PROTECTED] wrote:
Via the NSMutableURLRequest class, I can alter the HTTP Body, etc.
However, I need to send a SOAP/XML envelope & receive a XML response.
NSURLRequest etc. have nothing to do with the type of content you
send. They don't care whether it's
On May 15, 2008, at 11:43 PM, Laurent Cerveau wrote:
If I have a PDF View , select part of it and get the
currentSelection, showing it tells something like
Page index = 2, Range = (0, 21]
However I do not see where I could get the range of the PDFSelection
and later recreate a selection wit
On Fri, May 16, 2008 at 11:22 AM, Scott Ribe <[EMAIL PROTECTED]> wrote:
>> Forward references are what the concepts docs are for, but for some
>> reason, they don't seem to be serving that purpose for some people.
>> I'm not sure why.
>
> I get the feeling that some people never notice the "Compani
On May 16, 2008, at 11:03 AM, I. Savant wrote:
On Fri, May 16, 2008 at 12:55 PM, David Carlisle
<[EMAIL PROTECTED]> wrote:
FWIW, I got my very own collection view (MyVOCV) working nicely with
NSArrayController, all except for animations, and I just pre
ordered the
animation book from Amazon.
Is there a document which describes how columns interact with enclosed cells
when dealing with bindings?
There's a message flow going on that I'm not aware of. setObjectValue is
passed different things for the same binding depending on if my class
subclasses NSTextFieldCell or NSButtonCell. I don'
I got this to work!
The following is the complete code.
All the authorization and data is supplied by the .xml test file that I have
stored within the App bundle.
Thanks all!
=
- (IBAction)startSOAP:(id)sender {
NSLog(@"\n{AppDelegate} startSOAP start");
// crea
The potential audience for a computer programming documentation can range from
beginner's who don't know what a compiler is to people who are experts
themselves and just want a quick reference. Beginners are frustrated when
prerequisite knowledge is assumed, and experts are frustrated when they
Hello everyone:
I'm working through problems in the "Cocoa Programming for Mac OS X"
book, and on page 113 I read the following instructions:
Next you will connect you AppController object's tableView
outlets to the table view. Control-drag from the
AppController
On 16 May 2008, at 19:23 Scott Ribe <[EMAIL PROTECTED]> wrote
- (void) callPrintConstFloat:(id)pId {
[pId printFloat:98.76]; // pId is object of
class AnonTargetClass
}
This is probably compiled in file which does not include the
declaration of
class AnonTargetClass,
On May 16, 2008, at 4:55 PM, john darnell wrote:
I am attempting to follow these instructions, but whenever I do, when
the cursor hovers over the table view control on the dialog the label
that shows is NSTableColumn, and in the info panel the connected
button
remains grayed out and the mess
john darnell wrote:
I am attempting to follow these instructions, but whenever I do, when
the cursor hovers over the table view control on the dialog the label
that shows is NSTableColumn, and in the info panel the connected
button
remains grayed out and the message "tableView must be of type
On 16 May '08, at 1:36 PM, [EMAIL PROTECTED] wrote:
I got this to work!
...
NSError **myError;
NSHTTPURLResponse **serverResponse;
...
self.smsXMLString = [NSString
stringWithContentsOfFile:smsXMLPath encoding:NSUTF8StringEncoding
error:myError];
If that's not crashing, it
On May 16, 2008, at 2:17 PM, Julius Guzy wrote:
On 16 May 2008, at 19:23 Scott Ribe <[EMAIL PROTECTED]> wrote
- (void) callPrintConstFloat:(id)pId {
[pId printFloat:98.76]; // pId is object of
class AnonTargetClass
}
This is probably compiled in file which does not inc
On May 16, 2008, at 5:05 PM, Erik Buck wrote:
[Re-post from http://www.cocoabuilder.com/archive/message/cocoa/2007/8/20/188026
]
That was well worth reposting.
This may partly answer my question about why people don't notice or
study the concepts docs. Maybe we're too used to clicking on s
Hi all,
After reading the docs and archives, it is clear to me now that with
Core Data's SQL store one is more limited in the types of predicates one
can use with fetches.
What I can't find is a list of what I can and can't do. The best I
found was "[the] SQL store, on the other hand, compiles t
> ...if the method
> name is unique, the types of the parameters are determined.
Not unless a declaration is visible. Your reasoning is that there's no other
printFloat: so the compiler should know, but this is still (sort of) C--if
you don't include a declaration that tells the compiler what the
Just to add, it's generally important to include compiler warnings
with your problem description as they provide valuable clues. The
compiler issues warnings when something doesn't look right, make
sense, or lacking information. Usually the compiler will make guesses
and assumptions as to
HI Sean,
One example would be if you have a method that calculates a value.
That value would not be in the DB so the compiled predicate (if it
would even compile) would not work because there is not column
corresponding to your calc'd value.
I think this is worth filing a bug against the
> Just to add, it's generally important to include compiler warnings
> with your problem description...
Yo, any list moms listening? This is a really good suggestion that seems
like something that should perhaps be incorporated into monthly email
summarizing the list & how to ask questions.
--
S
Yo, any list moms listening? This is a really good suggestion that
seems
like something that should perhaps be incorporated into monthly email
summarizing the list & how to ask questions.
Yeah, it's been awhile since Scott Anguish's monthly mailing,
hasn't it? Lots of traffic recently that
Thanks to all who replied to my pleas for help.
I took Bill and Scott's suggestions to heart and produced the answer
I needed: Dynamic Typing which allows me to avoid circularity etc.
I post the complete solution as an example and to check that I'm not
running close to the wind by using a du
Wikis like CocoaDev can be nice for filling these gaps. I find
it helpful to see not only the articles, which are usually
practical, but also visitor comments.
For example, someone can easily add a statement to a 4-year-old
page, pointing out a new approach that works better. Or, a
debate can b
On May 16, 2008, at 4:51 PM, Julius Guzy wrote:
Thanks to all who replied to my pleas for help.
I took Bill and Scott's suggestions to heart and produced the answer
I needed: Dynamic Typing which allows me to avoid circularity etc.
Good. BTW: Nice paintings.
I post the complete solution as
On 16 May '08, at 2:34 PM, Bill Bumgarner wrote:
An almost universal rule of Mac OS X programming: If you see a
compiler warning, you are doing something wrong.
Amen. One of the first things I do to any Xcode project I work on is
turn on "Treat warnings as errors" in the build settings. Fo
Amen. One of the first things I do to any Xcode project I work on is
turn on "Treat warnings as errors" in the build settings. For some
reason almost all of Obj-C's type-checking errors appear as
warnings, and you ignore those at your peril.
VERY good advice. A little self-discipline is g
I have created a multidimensional array by creating 3 NSArray's (call
them childArray1, childArray2, childArray3) and them adding them to
one NSArray (call it parentArray). I am using predicate to search out
the array which finds the item I'm searching for. However, how I
return the name
Very good post, Erik.
Here's what I feel now about this issue.
I too am having difficulties to learn Cocoa. The problem might be that
I'm new to both Cocoa and Objective C. I've seen some tutorials that
try to teach them at the same time. I'm afraid they might be a little
too shallow, exploring s
On Fri, May 16, 2008 at 10:57 PM, john darnell
<[EMAIL PROTECTED]> wrote:
> And, what I hear from this august crowd is a consensus that the
> references are difficult to understand, but necessarily so--that they
> ought to be that way.
That's not really it. It's not that they should be difficult t
80 matches
Mail list logo