Hi, All,
Please, anybody, help me to understand how this thing works:
I'm trying to set a breakpoint at the main() call in the main.m. I'd like to
see the arguments. Or maybe there is NS to get them? One way or another,
my bp doesn't work for some reason. Please take a look at the screensh
On Jan 26, 2009, at 9:09 AM, Robert Monaghan wrote:
I am trying to wrap my head around using a plist.
When you refer to a "plist", are you referring to a property list data
structure as it might exist in memory, or a property list file? Or
perhaps you're referring to user defaults?
In m
On Jan 26, 2009, at 5:33 AM, Oleg Krupnov wrote:
For the beta-testing purposes, I'd like my app to handle the situation
when the EXC_BAD_ACCESS exception occurs, and treat it gracefully -
i.e. send a crash report and perhaps terminate.
You might look into NSExceptionHandler, which can do somet
On Jan 27, 2009, at 8:23 AM, Adam Venturella wrote:
Will thanks for the heads up, for my purposes this time around, the
input stream will be coming in off the file system, but I did not want
to load the whole thing into an NSData object.
Have you considered NSFileHandle and its -readDataOfLeng
On 27 Jan 2009, at 23:07, Graham Cox wrote:
On 28 Jan 2009, at 2:24 am, Jeremy Pereira wrote:
Yes. That is correct, but since buffer is already a pointer to the
first byte of the array and then you are taking a reference to it,
key will end up containing the address of the buffer. You r
Hello everyone,
I am developing some drawing software and needed some assistance. I
have a basic view: TSLabel which is just a small plain view that
doesn't really do anything - just a rectangle. This rectangle can be
dragged and moved around it's superview - TSCanvasView which is a
subcl
Few days ago I posted a querry that
"I can move a Window i.e. a NSWindow object with the just a simple call
[myWindow setMovableByWindowBackground:TRUE]. This makes window movable from
every point I drag my mouse pointer. Now if I place an NSImage Object over
the window and try to drag the w
Hi,
I am trying to perform some action on double click of image. Can anybody
suggest me some solution. something which gets called after double clicking
on the
image. any help will be appreciated.
Thanks in advance.
Regards,
PersistentSystemsPrivateLimited
P
Rahulkumar Tibdew
I want to display Multiple NSTabViewItems that can't fit in a Single
NSTabView. In windows, if tabview items doesn't fit in a tab then they are
displayed by dividing them in 2 lines. Is there anything like this on Mac
platform so that I can display around 10 TabViewItems in a single NSTabView?
Good afternoon,
I want to add an updatefunction to my applications, but I am wondering
how to implement it.
Does someone here have experience with updating your own applications
without letting the user downloading some parts manually.
Thank you very much,
Filip van der Meeren
fi...@code2d
You want Sparkle.
http://sparkle.andymatuschak.org/
On 28-Jan-09, at 8:43 AM, Filip van der Meeren wrote:
Good afternoon,
I want to add an updatefunction to my applications, but I am
wondering how to implement it.
Does someone here have experience with updating your own
applications witho
As a very cursory search with Google would have found you:
http://www.google.com/search?client=safari&rls=en-gb&q=nsimageview+double+click&ie=UTF-8&oe=UTF-8
http://lists.apple.com/archives/Cocoa-dev/2007/Mar/msg00542.html
Mike.
On 28 Jan 2009, at 09:47, Rahulkumar wrote:
Hi,
I am trying to
Look at -[NSView mouseDownCanMoveWindow]
On 28 Jan 2009, at 09:07, Rahulkumar wrote:
Few days ago I posted a querry that
"I can move a Window i.e. a NSWindow object with the just a simple
call
[myWindow setMovableByWindowBackground:TRUE]. This makes window
movable from
every point I dr
On 28 Jan 2009, at 08:09, Rick Langschultz wrote:
Hello everyone,
I am developing some drawing software and needed some assistance. I
have a basic view: TSLabel which is just a small plain view that
doesn't really do anything - just a rectangle. This rectangle can be
dragged and moved ar
The same as Adium!
Nice, thank you...
Filip van der Meeren
fi...@code2develop.com
http://sourceforge.net/projects/xlinterpreter
On 28 Jan 2009, at 15:00, Scott Anguish wrote:
You want Sparkle.
http://sparkle.andymatuschak.org/
On 28-Jan-09, at 8:43 AM, Filip van der Meeren wrote:
Good afte
Hello everyone,
Is it possible to receive a notification when the active space changes?
Or is it possible to programatically make an application display on
all spaces?
h.a.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do
On Jan 28, 2009, at 6:53 AM, Half Activist wrote:
Hello everyone,
Is it possible to receive a notification when the active space
changes?
No
Or is it possible to programatically make an application display on
all spaces?
Spaces target windows, so rather than thinking "an applic
I want to produce the effect of a text string fading out when it's too
long to be displayed in a rect. This kind of effect is used in many
apps.
My first solution was to simply draw the text and then on top of it
draw a gradient fill ranging from the fully transparent color to the
background color
You could render your text to an image first, composite it with the
opaque-to-transparent mask and finally draw the result.
I used to create images from text, but I ended up with issues
regarding resolution independence for some reason. So, you may need to
test this solution with RI if need
On 28 Jan 2009, at 16:49, Ricky Sharp wrote:
You could render your text to an image first, composite it with the
opaque-to-transparent mask and finally draw the result.
I used to create images from text, but I ended up with issues
regarding resolution independence for some reason. So, you
Sounds interesting, but how do I technically "composite the image with
the mask"?
Also I'm not sure I understand the resolution issues you mentioned.
Could you please give a little bit more detail? Thanks!
On Wed, Jan 28, 2009 at 5:49 PM, Ricky Sharp wrote:
> You could render your text to an i
On Tue, Jan 27, 2009 at 11:35 PM, Jerry Krinock wrote:
> Thanks for your thoughts, Graham and Michael. My irritation is not so much
> with the "Do you really want to do this? How?" dialogs, but in presenting
> errors.
>
> Probably I should have given a more concrete example, as I now have [1].
>
On Wed, Jan 28, 2009 at 6:00 AM, Jeremy Pereira wrote:
>
> On 27 Jan 2009, at 23:07, Graham Cox wrote:
>
>>
>> On 28 Jan 2009, at 2:24 am, Jeremy Pereira wrote:
>>
>>> Yes. That is correct, but since buffer is already a pointer to the first
>>> byte of the array and then you are taking a referenc
On 28 Jan 2009, at 17:08, Michael Ash wrote:
On Wed, Jan 28, 2009 at 6:00 AM, Jeremy Pereira
wrote:
On 27 Jan 2009, at 23:07, Graham Cox wrote:
However, I would argue that this is the C compiler behaving in a
deliberately inconsistent way, since in C, arrays and pointers are
supposed
to
> D'oh) is there any workaround to keep tracking of recent window user typed in
> ?
I suspect so, within CoreGraphics stuff, but I'm not sure. I fired off that
last email too quickly. Here's the part I left off:
You should describe to us the details of exactly what it is you're trying to
accompli
That sounds like a good plan. I did something similar in order to try
to work out a problem I had with nested CATextLayer objects not
displaying. The test app worked great. When I reproduced the
necessary bits of code in my application, I still cannot see the text
layers. It is very fru
On Tue, 27 Jan 2009 17:10:20 -0800, Jerry Krinock said:
>Butt if the possible problem involves a document, I believe it would
>be a better user experience to use a sheet instead of a dialog. But,
>arghhh, the method
>-[NSApp
>beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInf
Rahul,
This is a classic sign that you really really need to rethink your UI.
No, really, tabs are the wrong solution to your problem. I don't know
your exact problem, so I can't tell you what is the best solution in
your case., but a multi-line tab control is definitely not it.
Off the t
First off, I know this question is going to the wrong list, but I have NO idea
which list would be best. If anyone wants to jump in and tell me a better
list, I'll gladly move there.
Background:
I have an application that is working very, very hard to drive me insane. It
is multithreaded, laz
I am going to need to the same thing (dragging one or more items from
a NSCollectionView to some place else) and I found this old thread:
http://lists.apple.com/archives/cocoa-dev/2008/Oct/msg00104.html
Unfortunately, no clear solution was mentioned and I was wondering if
someone might be ab
Hello Everyone,
I had my project all working smooth using 1 nib file which contained
my MainMenu and my window. I have since separated them because a lot
of people suggested it. However this separation has led me to hit an
issue.
In my ManManu nib I have my App Delegate which then loads
On 28 Jan 2009, at 19:04, Joseph Crawford wrote:
Hello Everyone,
I had my project all working smooth using 1 nib file which contained
my MainMenu and my window. I have since separated them because a
lot of people suggested it. However this separation has led me to
hit an issue.
In my
Hello, I'm having a problem where [self
setIntercellSpacing:NSMakeSize(0.0, 0.0)]; will make all my rows
disappear from the table... I need this so I can have a custom
background for the selected rows.
How might I fix this?
Mr. Gecko
___
Cocoa-de
Thanks to everyone that responded. One off-list message I received
made me think about the problem a little more, and after some
debugging, I realized I had a PEBKAC problem on my hands. My app does
some fetch requests to check on existing data in the database,
compares it to what's in a no
Using this code:
NSIndexSet *is = [NSIndexSet
indexSetWithIndex:rowIndex];
[_tableView selectRowIndexes:is
byExtendingSelection:YES];
to select rows, the rows are selected and highlighted, but the first
column is not highlighted
oops no subject previously, sorry.
Using this code:
NSIndexSet *is = [NSIndexSet
indexSetWithIndex:rowIndex];
[_tableView selectRowIndexes:is
byExtendingSelection:YES];
to select rows, the rows are selected and highlighted, but
yeah that wouldn't work for what I need, if I could just do
NSHTTPURLResponse *response = [NSURLConnection
responseForRequest:request]; that would work, but it's not in cocoa...
On Jan 19, 2009, at 5:39 AM, Mike Abdullah wrote:
Create a NSURLConnection for the HD URL. It will receive an
NS
On Jan 28, 2009, at 10:33 AM, Karan, Cem (Civ, ARL/CISD) wrote:
First off, I know this question is going to the wrong list, but I
have NO idea which list would be best. If anyone wants to jump in
and tell me a better list, I'll gladly move there.
Background:
I have an application that is wo
Try turning off lazy loading of symbols, in Xcode's preferences.
--
Scott Ribe
scott_r...@killerbytes.com
http://www.killerbytes.com/
(303) 722-0567 voice
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mo
hi mr gecko,
you probably have something else wrong; the intercell spacing just
affects the spacing between cells in the tableview. look for
exceptions, and/or try experimenting with drawing in your cell.
corbin
Le Jan 28, 2009 à 11:44 AM, Mr. Gecko a écrit :
Hello, I'm having a problem
It only seemed to mess up when I resized the window. Now it seems to
not be doing it, I don't know what I changed...
On Jan 28, 2009, at 3:30 PM, Corbin Dunn wrote:
hi mr gecko,
you probably have something else wrong; the intercell spacing just
affects the spacing between cells in the tabl
Le Jan 28, 2009 à 1:51 PM, Mr. Gecko a écrit :
It only seemed to mess up when I resized the window. Now it seems to
not be doing it, I don't know what I changed...
Oh, well, you forgot to mention that earlier. It may be due to live-
resize caching. Try subclassing the tableview, override -
Le Jan 28, 2009 à 12:43 PM, David Blanton a écrit :
oops no subject previously, sorry.
Using this code:
NSIndexSet *is = [NSIndexSet
indexSetWithIndex:rowIndex];
[_tableView selectRowIndexes:is
byExtendingSelection:YES];
to se
On 28 Jan 09, at 13:15, Mr. Gecko wrote:
yeah that wouldn't work for what I need, if I could just do
NSHTTPURLResponse *response = [NSURLConnection
responseForRequest:request]; that would work, but it's not in cocoa...
Actually, it is. It's just named slightly differently...
NSURLConnection
Jerry Krinock wrote:
Does anyone have an idiom or way of appreciating this problem which
does not produce such spaghetti and headaches?
How about a state machine:
enum State { STATE_INIT, STATE_PREPARE, STATE_EXECUTE, STATE_FINISHED,
STATE_DEAD };
State state;
HandleEvent(event)
{
swi
That's how we do it. Of course, we try to handle all this in the
controllers, not in the model, so it propagates up to the controller
from the model via a delegate or something and then we use the state
machine there.
On Jan 28, 2009, at 4:19 PM, Jan Brittenson wrote:
Jerry Krinock wrote:
Good time, everybody. I use WebView in my app, which is loading html with
flash. I'm trying to catch keyboard events, so i added the next function to my
NSWindow's class - (void)keyDown: (NSEvent *) event
{ NSLog(@"KEYDOWN: %@", event);
}
It works while i didn't press on any buttons in my flash
Hey guys,
Im using a tableview linked up to an array controller. I want the
height of the tableview to grow with the # of objects in the array
controller. Like addressbook, add an e-mail and it just appears below
it.
Any ideas or code samples on how to do this would be great... Perhaps
Hello,
I'm happy to present a new release of NObjective bridge.
NObjective bridge to Objective-C provides the necessary classes to develop
and run .NET applications which interact with Objective-C frameworks and
libraries under Mac OS X with high performance, reliability and provides
automatically
On Jan 26, 2009, at 8:36 PM, Chris Idou wrote:
This method's list of allowedTypes when I do the drag doesn't
include my TokenPboardType. Now if I return TokenPboardType anyway,
it seems to work. my readSelectionFromPasteboard gets called with
TokenPboardType and it all seems to work. But i
On Tue, Jan 27, 2009 at 8:33 AM, JongAm Park
wrote:
> However, I have difficulty in making it to send data and receive ack from a
> server.
> Sometimes, it receives some meaningful data about changed information from a
> server, if a client send a request to change some data.
> But sometimes it a
On Jan 28, 2009, at 1:50 PM, Jason Cox wrote:
Im using a tableview linked up to an array controller. I want the
height of the tableview to grow with the # of objects in the array
controller. Like addressbook, add an e-mail and it just appears
below it.
Maybe I'm not understanding what
I've been following some Apple sample code with respect to mouse
dragging logic (within a table - but that's probably not important).
The particular approach involves maintaining full control of the drag
state by starting a loop that processes all pertinent events until the
mouse button is re
On 1/28/09 6:57 PM, I. Savant said:
> That the NSTableView typically comes already embedded in an
>NSScrollView (when dragged in IB) is beside the point. :-)
Smiley aside, I think it's more than just 'typical'. Unless I'm missing
some magic incantation, IB does not let you remove a tableview f
On Jan 28, 2009, at 7:15 PM, Sean McBride wrote:
Smiley aside, I think it's more than just 'typical'. Unless I'm
missing some magic incantation, IB does not let you remove a
tableview from its scrollview. No doubt it's possible
programatically...
Select the table (the scroll view beco
Is there some means of detecting if an instance has been initialized?
I'm thinking not. Apple's "NSObject Class Reference" says "The init
method defined in the NSObject class does no initialization", and
googling around on the topic has not produced any means of doing so. I
ask here in case some
On 1/28/09 7:26 PM, I. Savant said:
>> Smiley aside, I think it's more than just 'typical'. Unless I'm
>> missing some magic incantation, IB does not let you remove a
>> tableview from its scrollview. No doubt it's possible
>> programatically...
>
> Select the table (the scroll view becomes se
but wouldn't that return the data of the file it self as well? Because
I don't want the data because it's like 130MB and it'll take a long
time to get the data just for a check...
On Jan 28, 2009, at 4:12 PM, Andrew Farmer wrote:
On 28 Jan 09, at 13:15, Mr. Gecko wrote:
yeah that wouldn't w
On 28 Jan 09, at 16:30, Mr. Gecko wrote:
but wouldn't that return the data of the file it self as well?
Because I don't want the data because it's like 130MB and it'll take
a long time to get the data just for a check...
It'll return whatever response is appropriate for your request.
Setti
On 28 Jan 09, at 16:06, David H. Silber wrote:
Is there some means of detecting if an instance has been initialized?
No. However, this shouldn't ever be necessary - there should never be
a situation where you're passing around uninitialized objects.
__
On 29 Jan 2009, at 11:06 am, David H. Silber wrote:
Is there some means of detecting if an instance has been initialized?
I'm thinking not. Apple's "NSObject Class Reference" says "The init
method defined in the NSObject class does no initialization", and
googling around on the topic has not
How are custom class bindings exposed to Interface Builder?
Richard
___
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.c
Just found my answer in Interface Builder User Guide.
"Objects with bindable properties can expose those properties in
Interface Builder through their Interface Builder plug-in object."
"You configure bindings in Interface Builder by starting at the object
that exposes a bindable property.
On 29 Jan 2009, at 00:30, Mr. Gecko wrote:
but wouldn't that return the data of the file it self as well?
Because I don't want the data because it's like 130MB and it'll take
a long time to get the data just for a check...
Which is precisely why the URL loading system is asynchronous by
Hi all,
When I render text into a CGBitmapContext that has been filled with a
solid color, sub-pixel font smoothing is not applied and text looks
suboptimal compared to text rendered elsewhere. How can I enable font
smoothing? Calling CGContextSetShouldSmoothFonts doesn't seem to help.
Slava
I'm trying to get this NSOpenPanel to select all plain text files.
This should be *simple* right? Sheesh. So I thought I'd use a UTI (in
addition to some specific extensions and the HFS type 'TEXT'), so I
added kUTTypePlainText. That really should be just dandy for my needs.
Except it's n
On Thu, Jan 29, 2009 at 11:39:21AM +1100, Graham Cox wrote:
>
> On 29 Jan 2009, at 11:06 am, David H. Silber wrote:
>
> >Is there some means of detecting if an instance has been initialized?
> >
> >I'm thinking not. Apple's "NSObject Class Reference" says "The init
> >method defined in the NSObj
Seth Willits (sli...@araelium.com) on 2009-01-28 8:56 PM said:
>I'm trying to get this NSOpenPanel to select all plain text files.
>This should be *simple* right? Sheesh. So I thought I'd use a UTI (in
>addition to some specific extensions and the HFS type 'TEXT'), so I
>added kUTTypePlainText. Th
found out, I forgot to run -reloadData
On Jan 28, 2009, at 4:02 PM, Corbin Dunn wrote:
Le Jan 28, 2009 à 1:51 PM, Mr. Gecko a écrit :
It only seemed to mess up when I resized the window. Now it seems
to not be doing it, I don't know what I changed...
Oh, well, you forgot to mention that e
According to the documentation its not exactly recommended to use them
in 10.5 either, even though it appears to draw just fine in 10.5. If
my client wants to keep overlapping sibling views to save the time of
refactoring is this a terrible idea if he only plans to support 10.5+?
"For performance
On Jan 28, 2009, at 7:24 PM, Sean McBride wrote:
So it does. Neat. Odd that the click-and-hold that works for
moving other views around in the hierarchy does not work with the
tableview.
Very odd. First thing I noticed when I double-checked my assertions
when I saw your message. :-) I
On Jan 28, 2009, at 9:44 PM, Adam Gerson wrote:
According to the documentation its not exactly recommended to use them
in 10.5 either, even though it appears to draw just fine in 10.5. If
my client wants to keep overlapping sibling views to save the time of
refactoring is this a terrible idea if
- (NSString *)appSupportFolder {
NSArray *paths = NSSearchPathForDirectoriesInDomains
(NSApplicationSupportDirectory, NSUserDomainMask, YES);
NSString *basePath = ([paths count] > 0) ? [paths objectAtIndex:
0] : NSTemporaryDirectory();
return [basePath stringByAppendingPathComponent:@"Tom
On Jan 28, 2009, at 4:24 PM, Sean McBride wrote:
On 1/28/09 7:26 PM, I. Savant said:
Smiley aside, I think it's more than just 'typical'. Unless I'm
missing some magic incantation, IB does not let you remove a
tableview from its scrollview. No doubt it's possible
programatically...
Selec
On Jan 28, 2009, at 4:46 PM, cocoa-dev-requ...@lists.apple.com wrote:
On Thu, Jan 29, 2009 at 11:39:21AM +1100, Graham Cox wrote:
On 29 Jan 2009, at 11:06 am, David H. Silber wrote:
Is there some means of detecting if an instance has been
initialized?
I'm thinking not. Apple's "NSObjec
Hello,
I need my application to set in system menu bar.
I am able to set in menu bar. and i am getting all the events associated
with application click menu.
I stetted two click events on menu bar. openWindow and quit. on click of
openWindow I am loading nib file. this nib contains multiple windows
I can put together my own solution, but I'm *sure* there has to be
some real way of doing this built-in *somewhere*, so I have to ask...
My app has a URL handler, and I want the user to be able to click a
link to save some time to things. The URL would have the form:
myapp://action?key1=val
On Wed, Jan 28, 2009 at 2:04 PM, Joseph Crawford wrote:
> Hello Everyone,
>
> I had my project all working smooth using 1 nib file which contained my
> MainMenu and my window. I have since separated them because a lot of people
> suggested it. However this separation has led me to hit an issue.
On Wed, Jan 28, 2009 at 8:48 PM, David H. Silber wrote:
> On Thu, Jan 29, 2009 at 11:39:21AM +1100, Graham Cox wrote:
>>
>> On 29 Jan 2009, at 11:06 am, David H. Silber wrote:
>>
>> >Is there some means of detecting if an instance has been initialized?
>> >
>> >I'm thinking not. Apple's "NSObject
Hello,
I'm trying to track down the cause of hundreds of optimistic
locking errors in a multi-user core data application. A clue
might be found in the core data conflict list. However, its a
format that I don't recognize and find difficult to read. Does
anyone know a way to display it nice
I'm fiddling with a URL handler in my app and I noticed that if a
modal session was running, the handler - registered with my NSApp's
delegate - was not being called, even after the dialog closed. I
looked around the docs for a bit to find a reason/workaround and
discovered by chance that
On Jan 28, 2009, at 9:50 PM, Seth Willits wrote:
Does anyone know what's really going on here? Should AppleEvents
always be firing during a modal session?
Call me a fool on this one. I didn't realize my AppleEvent handler was
being set up after the call to runModal, thus it never would have
Hi All,
I created one NSStatusMenuItem and i am displaying it to Menubar.I want to get
position of that item in screen coordinates.
How can i get that position of that item?
Pleasle suggest. Any pointer should be appreciated.
Thanks & Regards,
R.
--
___
On Wed, Jan 28, 2009 at 10:57 AM, Thomas Davie wrote:
> This solution will also throw sub-pixel anti-aliasing in the bin.
Perhaps the better solution is to draw the text as normal and then
re-draw the background with the appropriate alpha on top.
--Kyle Sluder
___
On Jan 28, 2009, at 22:32, Kyle Sluder wrote:
On Wed, Jan 28, 2009 at 10:57 AM, Thomas Davie
wrote:
This solution will also throw sub-pixel anti-aliasing in the bin.
Perhaps the better solution is to draw the text as normal and then
re-draw the background with the appropriate alpha on top.
Hello all,
Still have problems with predicate editor. My items have tags and I
want to be able to filter items by those tags. My document has array
of all tags, so I added a row template with three popup buttons and
wanted to bind the third one to that array. I tried the following:
NSPopUpButton
Hello once again, just a quick question:
It seems that predicate editor remains what right view was used for
each operation. If I add a row with numeric parameter and two
operators (less and greater) and then switch between them - predicate
editor will "remember" value I entered for "less" and whe
87 matches
Mail list logo