On Apr 10, 2008, at 8:48 PM, Quincey Morris wrote:
Perhaps the controller is not getting released when it should. Do
you have an instance variable for the controller too? If so, how is
that retained/released? You could probably avoid the error by
sending a setContent:nil message to the
On 4/10/08, Michael Vannorsdel [EMAIL PROTECTED] wrote:
Indeed I can do that. This brings up another question; since
frameworks and libs didn't have much 64 bit support in 10.4, is it
possible for a fat binary to load the 64 bit image on 10.5 and 32 bit
on 10.4? Perhaps with some Info.plist
Hello
I am writing a document based core data app where I delegate som work
to an NSOperation subclass. This subclass should download stuff from
the internet and then create managed objects.
In my non-document based apps I have handled multithreading with a
separate NSManagedObjectContext
On Apr 10, 2008, at 23:01, Markus Spoettl wrote:
Yes that must be it. I'm not sure how I manage to do that, though.
Basically what I do is this:
NSIndexPath *location = [NSIndexPath indexPathWithIndex:
[treeContent count]];
TreeNode *rootnode = [[TreeNode alloc] init];
... set
Hi,
I have a table view that has visible vertical lines between columns. I’m trying
to hide a column and I’m probably / certainly going about it the wrong way.
Currently the only way I found to hide it was to set it’s width minimum width
to 0 (I still need to work with it’s data in the
On Thu, Apr 10, 2008 at 10:22 PM, Michael Vannorsdel [EMAIL PROTECTED] wrote:
Indeed I can do that. This brings up another question; since frameworks and
libs didn't have much 64 bit support in 10.4, is it possible for a fat
binary to load the 64 bit image on 10.5 and 32 bit on 10.4? Perhaps
Are you calling test: or sendLogs in a thread which doesnt have a
active run loop, or a thread that will soon terminate? Either one will
cause issues for NSURLConnections.
On Apr 10, 2008, at 7:27 AM, Micha Fuhrmann wrote:
Hi there,
I'm running into a problem with NSURLConnection and I
Apple has added a comment about garbage-collected singletons in its
Cocoa Fundamentals Guide:
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaObjects/chapter_3_section_10.html
Basically you create a singleton as shown in the guide's example, but
in a
Tom, thanks for your reply.
from my understanding in my case the Object that's initiated the
NSURLConnection is my shared instance since the call comes from the
outside through the - (IBAction)test:(id)sender that then initiates
the NSURLConnection with sendLogs. So if an object calls
What is the effect of using:
- (void)removeTableColumn:(NSTableColumn *)aTableColumn ?
I assume this just removes the column and doesn't affect the
datasource. And you can use the corresponding method:
- (void)addTableColumn:(NSTableColumn *)aColumn
When the need arises to reshow it.
Ok, I've used - (void)performSelectorOnMainThread:(SEL)aSelector
withObject:(id)arg waitUntilDone:(BOOL)wait and it's fine one, you've
pointed t what was wrong, however I thought that because the method
sendLogs was invoqued by an instance that is alive during the whole
app lifetime it
On 10.5 you should b able to hide directly (NSTableColumn setHidden
method). . Otherwise the best way is to keep an NSArray around (for
example in a subclass of NSTableView) where you add the column you
want to hide. Then when you hide a column you add it to this array and
delete it from
Hi all,
On a number of occasions I've found myself in a situation where I have
a data structure (often a complex one) that is implemented in C, but
for which I want an ObjC wrapper. As an example, let's consider a
tree of nodes.
Now, obviously it would be good to provide NSEnumerator
Actually … you might be right :-)
___
Valentin Dan, Software Developer Direct: +1 905 886 1833
ext.3047
Email: HYPERLINK mailto:[EMAIL PROTECTED][EMAIL PROTECTED]
Office: +40
Hi,
I'm trying to get my head around how to approach implementing a REST
(representational state transfer) interface in Cocoa.
I can see that having an NSXMLDocument would allow me to easily read in
XML data from a web source using initWithContentsOfURL: but if I'm
wanting make a request of a
I have two NSTableViews, whose items have a parent-child relationship.
I would like to be able to drag the children into the parent table
view, to change their parent (think dragging mail messages between
folders).
The standard dragging feedback is rather ugly to start off with, and
Actually, while reading up on NSThread I cam across NSOperation which
appears to spawn a new thread but is supposedly much cleaner to work
with. It definately does the job for me. Thanks everyone for your help
with this problem.
- Don
On Apr 10, 2008, at 5:13 PM, Wade Tregaskis wrote:
On Apr 11, 2008, at 7:35 AM, Don Arnel wrote:
Actually, while reading up on NSThread I cam across NSOperation
which appears to spawn a new thread but is supposedly much cleaner
to work with. It definately does the job for me. Thanks everyone for
your help with this problem.
NSOperation
On Apr 11, 2008, at 1:15 PM, Martin Redington wrote:
I have two NSTableViews, whose items have a parent-child relationship.
I would like to be able to drag the children into the parent table
view, to change their parent (think dragging mail messages between
folders).
The standard
Hi!
It appears that I need to push the NSRunLoop in default mode rather
than modal for NSAnimationContext to work:
[[NSRunLoop currentRunLoop]
acceptInputForMode:NSDefaultRunLoopMode
I have defined an NSView info view on IB.
This view contains several NSTextFields.
Now I want to programmatically create copies of this view and attach them to
the objects on my window. So if on my window I have 10 objects, I should see
the 10 objects, each one having its info view. Each view
On 2008 Apr, 11, at 4:15, Martin Redington wrote:
The standard dragging feedback is rather ugly to start off with...I
could spot any obvious way to customise this feedback
I'm not sure what you consider to be ugly, but if, instead of a static
image as suggested by Stéphane, you need
On Fri, Apr 11, 2008 at 8:55 AM, Lorenzo [EMAIL PROTECTED] wrote:
I have defined an NSView info view on IB.
This view contains several NSTextFields.
Now I want to programmatically create copies of this view and attach them to
the objects on my window. So if on my window I have 10 objects, I
It's not the dragged image I'm concerned about - I know how to change/
customise that.
By dragging destination feedback, I mean the black border that gets
drawn around the row of the destination table that I'm about to drop
on. I'd like to stop the tableview drawing that, and draw
On Fri, Apr 11, 2008 at 6:04 AM, Alastair Houghton
[EMAIL PROTECTED] wrote:
Under GC, these kinds of tricks are no longer possible because there is no
-retain call any more, so no way to tell if it is safe to re-initialise and
return the same wrapper object.
Aside from re-implementing the
On Apr 10, 2008, at 5:41 PM, Eric Gorr wrote:
On Apr 10, 2008, at 8:28 PM, Corbin Dunn wrote:
If you're targeting Leopard, there is an NSTableView method you
can override for this (a public one!)
-(void)highlightSelectionInClipRect:(NSRect)theClipRect
Ideally this should be the only
1. Subclass NSCell, NSTextFieldCell, or whatever other cell you want.
2. Override:
- (NSColor *)highlightColorWithFrame:(NSRect)cellFrame inView:
(NSView *)controlView
and return nil.
How would I go about subclassing NSTextFieldCell NSImageCell and
then using these cell with my
On Apr 11, 2008, at 7:10 AM, Martin Redington wrote:
It's not the dragged image I'm concerned about - I know how to
change/customise that.
By dragging destination feedback, I mean the black border that
gets drawn around the row of the destination table that I'm about to
drop on. I'd
On Apr 11, 2008, at 12:10 AM, Quincey Morris wrote:
Well, without knowing the details of what you're doing, it's
impossible to be certain, but this code certainly looks *very*
wrong. For one thing, 'insertObject' is (according to the
documentation) for controller subclasses to use to
On Apr 11, 2008, at 08:07, Michael Ash wrote:
The obvious technique would be to stop trying to make the optimization
implicit and to make it explicit and managed by the caller instead. In
other words, you write your API so that it explicitly returns the same
object every time you call
On Apr 11, 2008, at 1:23 PM, allan greenier wrote:
Greetings,
Have I missed this somewhere in the Cocoa - Foundation api?
If I have an NSString that is multi lined (say in contains \n
characters)
is there an api call so I can get line 0, line 1, ect? Or should I
just code that myself?
Hi
Le 11 avr. 08 à 19:14, Tom Harrington a écrit :
On Fri, Apr 11, 2008 at 3:53 AM, Micha Fuhrmann [EMAIL PROTECTED]
wrote:
Ok, I've used - (void)performSelectorOnMainThread:(SEL)aSelector
withObject:(id)arg waitUntilDone:(BOOL)wait and it's fine one, you've
pointed t what was wrong, however I
Le 11 avr. 08 à 19:31, j o a r a écrit :
On Apr 11, 2008, at 10:23 AM, allan greenier wrote:
If I have an NSString that is multi lined (say in contains \n
characters)
is there an api call so I can get line 0, line 1, ect? Or should I
just code that myself?
There is no NSLineEnumerator
Le 11 avr. 08 à 19:27, Quincey Morris a écrit :
On Apr 11, 2008, at 09:51, Alastair Houghton wrote:
It doesn't, but you might conceivably have methods that take an
NSEnumerator and do something with the objects it returns. Hence
the utility of nextObject.
Ah, I see - simultaneous
On Apr 10, 2008, at 19:09, Quincey Morris wrote:
Thanks a bunch, Quincey.
That worked fine. I was going by NSArrayController's documentation
that its selectionIndex method returned an NSUInteger. Either that
is wrong or the NSButton wraps it in an object wrapper when it uses
the Argument
On Apr 11, 2008, at 10:25 AM, Buddy Kurz wrote:
I'm wondering if it would make sense (or be possible) to override -
retain and -release to increment/decrement your own variable in
addition to using the inherited behavior. In the GC environment,
the inherited retain does nothing but in
When a Core Data document is opened initialization adds an entity for the
basic 'All' smart group. This object is assigned to an in memory store
(rather than to the persistent document) - I have checked and the 'All' item
doesn't appear in the saved data.
... but a context has changed.
This is great to hear, thanks a lot for the info. Got the build done,
just need to test on the Core 2 when I get to work.
On Apr 11, 2008, at 1:39 AM, Clark Cox wrote:
On Thu, Apr 10, 2008 at 10:22 PM, Michael Vannorsdel [EMAIL PROTECTED]
wrote:
Indeed I can do that. This brings up
i used the abstracttree sample project step by step instructions, and
i get it to work as expected except when it comes to drap and drop.
comparing the nib files between my implementation and the one that
comes in the sample code, i can't see anything different.
i do expect the drap and drop
On Apr 11, 2008, at 12:11 PM, Stephane Huaulme wrote:
i used the abstracttree sample project step by step instructions,
and i get it to work as expected except when it comes to drap and
drop.
comparing the nib files between my implementation and the one that
comes in the sample code, i
On Apr 11, 2008, at 11:38 AM, K. Darcy Otto wrote:
The application I am working on is essentially one big table, and
I'd like to restore at least one aspect the default tab behaviour
that Tiger used when editing tables. Namely, when the user is at
the end of the row and hits tab, I'd like
on 2008-04-11 9:48 AM, Errol Sayre at [EMAIL PROTECTED] wrote:
I can't seem to find any documentation anywhere, but I'm assuming the
data detectors in Leopard are a resurrection/reincarnation of the
classic Mac OS Data Detectors...
Is there an open API for creating these dealies in Leopard?
note that i did register my drap and drop type in awakeFromNib, and
that code does get executed:
[outlineView registerForDraggedTypes:[NSArray
arrayWithObject:myAgendaNodeType]];
however, the following proc:
- (BOOL)outlineView:(NSOutlineView *)outlineView writeItems:(NSArray
*)items
On Fri, Apr 11, 2008 at 12:53 PM, Alastair Houghton
[EMAIL PROTECTED] wrote:
On 11 Apr 2008, at 16:07, Michael Ash wrote:
On Fri, Apr 11, 2008 at 6:04 AM, Alastair Houghton
[EMAIL PROTECTED] wrote:
Under GC, these kinds of tricks are no longer possible because there is
no
-retain
Hi everybody,
I've got a small app with two tableviews; one with iTunes playlists,
and one with the tracks in the selected playlist. (Just doing this to
learn)
I added a NSSearchField to the program, but can't get it to work. Am I
right that it's meant to be possible to, with 0 lines of
I think Omni Group (http://www.omnigroup.com) had a tool called class-
dump that you could use to get a list of private objc classes and
methods from binaries including frameworks and libraries. I don't
know about C/C++.
On Apr 11, 2008, at 2:08 PM, Ryan Chapman wrote:
Is there a utility
On 11-Apr-08, at 1:07 PM, Corbin Dunn wrote:
On Apr 11, 2008, at 11:38 AM, K. Darcy Otto wrote:
The application I am working on is essentially one big table, and
I'd like to restore at least one aspect the default tab behaviour
that Tiger used when editing tables. Namely, when the user is
Thank you; that fixed it. Here is my solution (for a 4-column table):
-(void)textDidEndEditing:(NSNotification *)notification
{
NSInteger editedColumn = [self editedColumn];
NSInteger editedRow = [self editedRow];
NSDictionary *userInfo = [notification
fixed:
my outlineview datasource outlet was not connected!
On Apr 11, 2008, at 3:12 PM, Stephane Huaulme wrote:
note that i did register my drap and drop type in awakeFromNib, and
that code does get executed:
[outlineView registerForDraggedTypes:[NSArray
Are there known issues with unclickable Cocoa windows in
Carbon apps on Panther (10.3.9)? The Carbon windows still
accept events. On Leopard, with identical code, the Cocoa
windows *do* work correctly in my Carbon app.
I think I'm doing everything I should, e.g. calling
NSApplicationLoad(),
On Apr 11, 2008, at 6:08 AM, Jonathan Relf wrote:
I can see that having an NSXMLDocument would allow me to easily read
in
XML data from a web source using initWithContentsOfURL: but if I'm
wanting make a request of a URL first and then get the XML reply back
into an object, is there a better
On Apr 10, 2008, at 9:04 PM, Laimonas Simutis wrote:
Hey,
This is my first cocoa projects so I am kind of finding my way around
the framework. The question I have is maybe more related to the design
practices with cocoa.
I make a HTTP call to a server which gives me back a list of urls
I'm using the Cocoa class QCRenderer after testing for Tiger or
later. This means I have to link to Quartz.framework which I do as a
weak link so I can still start under Panther and test the system
version before trying to instantiate QCRenderer. This worked fine
when building on Tiger.
Hey all,
Is there a way to get at the contacts available in Directory.app? The
disjunction between Directory.app and Address Book.app is infuriating,
to say the least. I really want to develop a quick-and-dirty in house
contact management app that integrates nicely with all the other
Is there a way to prevent click through on a transparent view?
Greg
___
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
Greetings!
This is a rather odd (and I'm sure simple) question, but I cannot seem
to find a suitable explanation anywhere I look.
So, my code initializes a menu with an action myAction:, whose
target is myClass.
Now, I've noticed through trial and error that the only way to get my
You have to create actual objects of that class:
MyClass * obj = [[MyClass alloc] init];
then send your '-' messages to that object:
[obj myAction:arg];
You might want to read up some more on object oriented programming so
you know the difference between an object and its class. A class is
I'm trying to develop an app to take in dimensions (rowCount and
colCount) from an NSForm and set up an NSView subclass to display a
matrix of squares accordingly. Here's the action that responds to the
NSForm:
- (IBAction)setSize:(id)sender
{
NSRect aRect;
//Start with
Hi,
I'm trying to add some launch arguments to my executable by modifying
the arguments passed to main.m, but find that the new arguments are
completely ignored. No matter what I pass to NSApplicationMain the
executable launches with the same old default argsv[]. Is this not the
right approach?
If you're using NSProccessInfo to get the args, then changing them at
runtime won't work as far as I know. The args are stored before main
is even called. I don't think passing args to NSApplicationMain has
any kind of effect.
Couldn't you just store your custom args in a global and
BTW, not sure why you're trying to feed in custom args but if it's for
testing purposes you can tell Xcode what args to pass by getting info
on your program under Executables and put the launch arguments in there.
On Apr 11, 2008, at 8:01 PM, [EMAIL PROTECTED] wrote:
'm trying to add some
Hi,
I'm getting a simple animation programme together for a gig I'm playing in at
the end of the month, and I'm having difficulty working out how to send the
animation straight to a projector.
The animation is in a custom view. In the past, I've just dragged the window
containing the view to
Can you make the application run fullscreen or use a borderless window
(no titlebar)? For borderless windows you'll have to programatically
make it with the NSBorderlessWindowMask mask.
On Apr 11, 2008, at 8:25 PM, Simon wrote:
I'm getting a simple animation programme together for a gig
On Fri, Apr 11, 2008 at 4:15 PM, Michael Ash [EMAIL PROTECTED] wrote:
I think it's inherently not possible to do without destroying the
speed you're trying to gain. Due to how Apple's collector is
implemented, not generating write barriers for stack values, seeing if
an object has been
On Fri, Apr 11, 2008 at 1:32 PM, Jean-Daniel Dupas
[EMAIL PROTECTED] wrote:
NSRunloop documentation disagree:
In general, your application does not need to either create or explicitly
manage NSRunLoop objects. Each NSThread object, including the application's
main thread, has an NSRunLoop
Uh, the double both variant isn't available in the GUI, so why would
you ever complain about an application not supporting it? It's never
been an official option, just available via an undocumented preference
value.
The bottom line that you're veering away from is that this guy wants
to
On Wed, Apr 9, 2008 at 11:30 PM, Bill Monk [EMAIL PROTECTED] wrote:
On Apr 9, 2008, at 10:41 PM, Michael Watson [EMAIL PROTECTED] wrote:
I hope it isn't possible. I don't really want applications actively
ignoring my scroll bar setting and enforcing its own
If suddenly one or two
On Apr 11, 2008, at 12:10 AM, Quincey Morris wrote:
Well, without knowing the details of what you're doing, it's
impossible to be certain, but this code certainly looks *very*
wrong. For one thing, 'insertObject' is (according to the
documentation) for controller subclasses to use to
68 matches
Mail list logo