Hello !
I have an objective C class and want to call a method on a class in C+
+. As argument to the C++ class is a map instance of the STL.
The ObjC class definition is on a file with a mm extension.
I have std::map *var as a member variable of the ObjC class. When I
compile the code there
On 12 Sep 2008, at 10:17, Daniel Luis dos Santos wrote:
Hello !
I have an objective C class and want to call a method on a class in C
++. As argument to the C++ class is a map instance of the STL.
The ObjC class definition is on a file with a mm extension.
I have std::map *var as a member v
The problem was that in CVDisplayPipeline.h I was declaring the map as
a return type of a method, but without specifying the template types
(caused by my relative ignorance of C++).
Now I have another problem, which I wonder if you could help :
On one project I have a target that builds a sh
On 12 Sep 2008, at 7:30 am, Ken Ferry wrote:
On Thu, Sep 11, 2008 at 2:23 PM, Ken Ferry <[EMAIL PROTECTED]> wrote:
Hi Graham,
That's backwards.. only subclassers are concerned with designated
initializers. Someone creating an object can call any init method.
Maybe it's easiest to describe b
Hi
I am working with IKImageBrowser and would like to display the size of
the image as subtitle in the browser. So I implemented an
imageSubtitle method of the IKImageBrowserItem and started using
ImageIO to get those info. However it looks to me that I am doing
unnecessary work as the IK
I've made as you suggested but nothing is changed.
Take a look here:
http://img440.imageshack.us/img440/103/picture1it4.png
thanks a lot
On Fri, Sep 12, 2008 at 12:27 AM, Meik Schuetz <[EMAIL PROTECTED]> wrote:
> Hi there,
> in the target properties, make sure the header file search path is set to
dexter morgan wrote:
> I've made as you suggested but nothing is changed.
> Take a look here:
> http://img440.imageshack.us/img440/103/picture1it4.png
> thanks a lot
>
typo, change semclt to semctl in main.
Peter
--
Peter O'Gorman
http://pogma.com
___
On Sep 12, 2008, at 1:17 AM, Daniel Luis dos Santos wrote:
I have std::map *var as a member variable of the ObjC class.
Is this really how it's declared? std::map is a template, so you have
to do something like:
std::map* var;
Or better yet:
typedef std::map my_map_type;
...
On Thu, Sep 11, 2008 at 8:02 PM, Adam Swift <[EMAIL PROTECTED]> wrote:
> No, you'll need to do a manual migration so you can register yourself as an
> observer of the NSMigrationManager's migrationProgress
Thanks Adam, I figured that was the case. I didn't want to spend much
time on this feature
On Fri, Sep 12, 2008 at 6:55 AM, Graham Cox <[EMAIL PROTECTED]> wrote:
> By the way, the operative word with my comment regarding NSView was
> "effective". I can see that init can just pass a zero rect, but does that
> make a useful view? No, not really - but perhaps I miss the point a bit
> there.
On Sep 11, 2008, at 10:16 PM, Ken Ferry wrote:
If I read this correctly, you're hoping that you can erase some of the
drawing done in your overlay view, just revealing the original drawing
in your complex background view.
You can get the effect you want in layer backed mode (c.f. -[NSView
s
Hi all,
Suppose I have a model (myModel) and its view (myModelView) which is a
subclass of NSView. myModel has an update method that updates the
model, and changes in the view are all drawn inside the drawRect:
method of myModelView. If I have the following sequence:
[ myModel update ];
[
I have an app that uses a pen tool. If I move the mouse slowly, the free-hand
drawing looks smooth, but as I increase the speed at which I move the mouse,
the line gets bumpy. I am calling lineToPoint: in the mouseDragged: method of
my view.
Has anyone found a solution to this problem.
Suppose I have a model (myModel) and its view (myModelView) which is
a subclass of NSView. myModel has an update method that updates the
model, and changes in the view are all drawn inside the drawRect:
method of myModelView. If I have the following sequence:
[ myModel update ];
[ myModelVi
I'm new to Objective-C. Can someone suggest an approach to building a two
dimensional array of integers?
Thanks,
Jordon
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the lis
Hello there,
I am trying to display a little pop-up using NSAlert. I've used a
fairly standard snippet from this page (which is written in German,
plus it is ObjC code): http://cocoa-coding.de/nsalert/nsalert.html
My translation to Python is the following. Yes, that's step-by-step
print-de
Hi,
I ran into a problem where the canRemove controllerkey doesn't correctly
disables a toolbar item.
What I first had, was a simple toolbar item, who's enabled property was
bound to the canRemove controllerkey of an arraycontroller in my nib, and
that sent an action to the same arraycontroller w
> > This is the usual pattern at init. Let's say a user calls a
> > non-designated initializer. That may call other non-designated
> > initializers, but at some point one of those will call self with
> > something that is a designated init method of the leaf class. That
> > method will call
On Fri, Sep 12, 2008 at 5:05 AM, Jordon Hirshon <[EMAIL PROTECTED]> wrote:
> I'm new to Objective-C. Can someone suggest an approach to building a two
> dimensional array of integers?
Objective-C is a super set of C and you question appears to be more of
a C question. In other words you would d
2 ways-
* Identically to C:
int myArray[X_SIZE][Y_SIZE];
This will perform much faster but will have all of the drawbacks of a
dumb C array.
* Or with NSArray/NSMutableArray:
NSMutableArray *myArray = [NSMutableArray arrayWithObjects:
[NSMutableArray array],[NSMutableArray array],nil];
e
OK, so:
[[NSExceptionHandler defaultExceptionHandler]setDelegate:self];
[[NSExceptionHandler defaultExceptionHandler]setExceptionHandlingMask:
0
| NSHandleUncaughtExceptionMask
| NSHandleUncaughtSystemExceptionMask
|
On Sep 11, 2008, at 12:21 PM, Daniel Weber wrote:
Hi everyone. I have an NSView with some appkit drawing code that I'm
trying
to convert to core graphics drawing code. One thing I'm having
trouble with
is the transition from NSBezierPath to CGPath. Basically in my
application,
I want to ani
I have a NSView that only appears in a window when a certain activity
is in progress, and there's an NSPopUpButton in the view that acts as
a gear menu with actions that relate to the activity in progress. The
issue is that if the button's menu is still open when activity
finishes and the v
I'm working on an application with a single main window and a number
of views and view controllers. I have a navigation window that pops
up and allows users to set preferences and also switch views in the
main portion of the app's main window.
I want to write the code to switch views in th
On Sep 12, 2008, at 5:05 AM, Jordon Hirshon wrote:
I'm new to Objective-C. Can someone suggest an approach to building
a two dimensional array of integers?
You can either make an NSArray that contains other NSArrays or just
use a c-style multidimensional array.
example of using an NSArra
Hi guys,
This is a quick question I hope! What's the most efficient way to make
the progress indicator background transparent (I've got a screen shot
of a quick test app[1])? Is there away to do this without redrawing
the gradient in the background? I'm assuming that I could try and find
On Sep 12, 2008, at 3:24 PM, Graff wrote:
// create the 2-D array
NSArray *twoD = [NSArray arrayWithObjects:
[NSMutableArray new],
[NSMutableArray new],
[NSM
On Sep 12, 2008, at 12:17 PM, Brad Gibbs wrote:
I want to write the code to switch views in the
MainWindowController.m, since it controls the window that contains
the views that will be switched. But, the buttons that control the
view switching are located on a panel being controlled by a
On Sep 12, 2008, at 11:40 AM, Jeff Johnson wrote:
I have a NSView that only appears in a window when a certain
activity is in progress, and there's an NSPopUpButton in the view
that acts as a gear menu with actions that relate to the activity in
progress. The issue is that if the button's
Thanks for the reply. Unfortunately, the navigation panel is too
complicated not to have a controller (it has several, actually). I
haven't used the responder chain yet, but I'll give it a go. It's
disappointing that there's no way to target the instance directly...
On Sep 12, 2008, at
Can anyone explain this?
The value of the expression is apparently different from the value of
a variable assigned to that expression:
double pitch = A0Pitch * pow(2.0, ntones/
currentTonesPerOctave(voice)) ;
NSLog(@"expression value: %f", A0Pitch * pow(2.0, ntones/
currentTonesPerOctave(v
Hey Brad -
So it sounds like you have two controllers, A, and B, and they each
have their own NIB. Sound like you're on the right track. Now you want
to have an action in B's NIB affect controller A. Does controller B
have an instance variable, or other mechanism, for referencing
controll
On Sep 12, 2008, at 3:16 PM, Peter Ammon wrote:
On Sep 12, 2008, at 11:40 AM, Jeff Johnson wrote:
I have a NSView that only appears in a window when a certain
activity is in progress, and there's an NSPopUpButton in the view
that acts as a gear menu with actions that relate to the activity
On Sep 12, 2008, at 1:30 PM, Brad Gibbs wrote:
It's disappointing that there's no way to target the instance
directly...
By design, an object freezedried in a nib cannot be connected to
objects in other nibs, mainly because this would cause loading one nib
to load others. If you have to
Hi everyone,
I've been looking inside NSWorkspace, NSBundle, NSApplication,
NSFileWrapper, etc for some way to get the display name of an
application from it's bundle identifier, but I can't find anything.
Is there a way to do this? For example, if I have
"com.apple.InterfaceBuilder3",
Dave-
Just a thought
NSString *path = [[NSWorkspace sharedWorkspace]
absolutePathForAppBundleWithIdentifier:bundleIdentifier];
NSString *appName = [[path lastPathComponent]
stringByDeletingPathExtension];
On Sep 12, 2008, at 2:06 PM, Dave DeLong wrote:
Hi everyone,
I've been looki
Thanks for the idea. I'm sure it will work under most situations, but
there are times when what's displayed in the Finder (ie it's absolute
path) is not necessarily the same thing as the actual application name.
For example, I have BBEdit 8 and BBEdit 9 (trial) right now. BBEdit 8
is at "
Does the standard Windows menu manage and show all application
windows? If so, under what conditions do windows not get listed in
the pull down?
On the other hand, it is up to the programmer to manage the list and
enable and disable windows as they become key and front?
Thanks,
John
___
If I'm reading your mail correctly, I've tried that without success.
I have a MainWindowController controlling MainWindow. On
MainWindow.xib is a button which launches another window
(MainMenu,xib) with a window controller (MainMenuWindowController.m).
A couple of NSViewControllers down i
On Sep 12, 2008, at 12:25 PM, Simon wrote:
Hi guys,
This is a quick question I hope! What's the most efficient way to
make the progress indicator background transparent (I've got a
screen shot of a quick test app[1])? Is there away to do this
without redrawing the gradient in the backgro
If you want the name displayed by the Finder, you want -
[NSFileManager displayNameAtPath:].
If you want the name the app claims for itself, you want -[NSBundle
objectForInfoDictionaryKey:] called on the bundle obtained from the
path, passing (id)kCFBundleNameKey as the key.
Cheers,
Ken
O
Hey Dave -
You could start with -[NSWorkspace
absolutePathForAppBundleWithIdentifier:] to get a path. Use that path
to create an NSBundle instance with +[NSBundle bundleWithPath:], and
then use the NSBundle to find the name. -[NSBundle
objectForInfoDictionaryKey:] and -[NSBundle localized
On Sep 12, 2008, at 2:25 PM, Brad Gibbs wrote:
If I'm reading your mail correctly, I've tried that without success.
I have a MainWindowController controlling MainWindow. On
MainWindow.xib is a button which launches another window
(MainMenu,xib) with a window controller
(MainMenuWindowCo
Hey folks,
The app I am working on has 2 windows. My project has been to
implement the 2nd window. I added a new nib file and a new class,
MyController:NSWindowController. In the MainController:NSObject
implementation, there is a MyController object, which can be shown or
hidden by the us
When NSXMLParser hits a character entity like ä (-> German umlaut
'ä'), it sends parser:resolveExternalEntityName:systemID: to its
delegate and if this is not implemented or returns nil,
parser:parseErrorOccurred: is called with
NSXMLParserUndeclaredEntityError.
Am I supposed to resolve a
Hi all,
I have the similar problem in 10.4.x with another modaled dialog window that
only contains NSOutlineView table with 3 columns data. I'm pretty sure
reloadData is called. This modaled dialog shows the contents correctly in
10.5.2. Is there a call to refresh the display for the modaled dia
--- On Fri, 9/12/08, John MacMullin <[EMAIL PROTECTED]> wrote:
> Does the standard Windows menu manage and show all
> application
> windows? If so, under what conditions do windows not get
> listed in
> the pull down?
>From the horse's mouth:
http://developer.apple.com/documentation/Cocoa/C
I still recommend the same steps to diagnose the problem:
After your model has changed (ie: in awakeFromNib, or wherever you
initialize things), call -reloadData.
You can test this out by adding a breakpoint in Xcode on [NSTableView
reloadData]. Have it print the bt, and see when it is call
On 12 Sep 2008, at 22:06, Dave DeLong wrote:
I've been looking inside NSWorkspace, NSBundle, NSApplication,
NSFileWrapper, etc for some way to get the display name of an
application from it's bundle identifier, but I can't find anything.
Is there a way to do this? For example, if I have
Ok, thanks.
However, as it stands nothing is being added to the Window menu.
The following code also fails.
IBOutlet NSWindow *testWindowOutlet;
This code is in the awakeFromNib
[testWindowOutlet setTitle:[[NSBundle mainBundle]
localizedStringForKey:@"Test Stuff" value:nil table:nil]];
[NS
On Sep 12, 2008, at 2:26 PM, John MacMullin wrote:
Does the standard Windows menu manage and show all application
windows? If so, under what conditions do windows not get listed in
the pull down?
On the other hand, it is up to the programmer to manage the list and
enable and disable win
On Sep 12, 2008, at 1:31 PM, Roland Silver wrote:
Can anyone explain this?
The value of the expression is apparently different from the value
of a variable assigned to that expression:
double pitch = A0Pitch * pow(2.0, ntones/
currentTonesPerOctave(voice)) ;
NSLog(@"expression value: %f"
On Sep 12, 2008, at 1:54 PM, Jeff Johnson wrote:
On Sep 12, 2008, at 3:16 PM, Peter Ammon wrote:
On Sep 12, 2008, at 11:40 AM, Jeff Johnson wrote:
I have a NSView that only appears in a window when a certain
activity is in progress, and there's an NSPopUpButton in the view
that acts as a
On 13 Sep 2008, at 2:18 am, Ian was here wrote:
I have an app that uses a pen tool. If I move the mouse slowly, the
free-hand drawing looks smooth, but as I increase the speed at which
I move the mouse, the line gets bumpy. I am calling lineToPoint: in
the mouseDragged: method of my view.
On Sep 12, 2008, at 3:07 PM, Brad Gibbs wrote:
Thanks for the help. I'm trying to understand your code suggestion
below. My app isn't document-based, so I don't think I have a
document to refer to... Can I just leave that part out, or will
things work differently in a non-document-based
On 13 Sep 2008, at 1:29 am, Chinh Nguyen wrote:
My selection is several pixels behind my mouse as I'm dragging it
when I use setNeedsDisplay:
This suggests you're handling the drag loop incorrectly. There's no
reason this should be the case when using setNeedDisplay: - if you
organise y
I am using the standard, default Window menu.
John
On Sep 12, 2008, at 4:04 PM, Peter Ammon wrote:
On Sep 12, 2008, at 2:26 PM, John MacMullin wrote:
Does the standard Windows menu manage and show all application
windows? If so, under what conditions do windows not get listed in
the pull
At 17:06 -0700 12/09/08, [EMAIL PROTECTED] wrote:
>From: Jonathan Hess <[EMAIL PROTECTED]>
>References: <[EMAIL PROTECTED]>
>In-Reply-To: <[EMAIL PROTECTED]>
>Date: Fri, 12 Sep 2008 14:34:59 -0700
>Message-ID: <[EMAIL PROTECTED]>
>...
>Before displaying a localized name for your bundle, the Finder
On 13 Sep 2008, at 10:21 am, Graham Cox wrote:
If you are using the rect to select objects, you can also pass it
to other methods that find which objects it touches or encloses.
To be clear - of course you'd do this in step (2), not step (3), then
*draw* the feedback of being in a select
On Sep 12, 2008, at 18:26 , Citizen wrote:
On 12 Sep 2008, at 22:06, Dave DeLong wrote:
I've been looking inside NSWorkspace, NSBundle, NSApplication,
NSFileWrapper, etc for some way to get the display name of an
application from it's bundle identifier, but I can't find
anything. Is the
On Sep 12, 2008, at 4:44 PM, Paul Archibald wrote:
So, what is the general outline of properly allocating,
initializing and deallocating an application and its elements? Can
someone point me to the right documentation? I can't seem to find
reference to this subject.
Here's the Memory Mana
On Sep 12, 2008, at 5:53 PM, Ken Thomases wrote:
Cocoa doesn't bother doing a full release/dealloc of your
application object (and the things it owns) at application
termination. The principle is that the OS is about to cleanup the
whole process's address space in one fell swoop, so there'
I'm displaying a list of 100,000 or so global locations in an
NSTableView, using an NSSearchField to help the user zero in on
desired locations by street address, city, state, country, etc. It
all works fine using Core Data plus bindings. And best of all no
interface code...
It would be
On Sep 12, 2008, at 6:09 PM, Steve Mykytyn wrote:
It would be handy to add an NSPopupButton with the list of countries
to optionally restrict the search to a specific country while
looking for a city name in the searchfield, say. Can't seem to find
any relevant examples of this kind of thi
I run into a stumbling block once I get to the first
NSWindowController, whether I'm trying your method, or trying to use
the Responder Chain, as Jamie suggested. I get what you're suggesting
and I tried going that route before making the original post, but I
don't know how to go from the
On Sep 12, 2008, at 7:08 PM, Brad Gibbs wrote:
[self.view.window.parentWindow.windowController removeChildWindow:
[self.view.window]];
[self.view.window] doesn't make any sense.
b.bum
smime.p7s
Description: S/MIME cryptographic signature
___
C
I'm using the Font Panel via NSFont Manager to change text attributes
through a modal panel (in fact a sheet).
I can change the font OK, as using -setTarget: I can set the target of
the font manager to my modal panel. However, I never get the call to -
changeAttributes:, so all the stuff suc
Hey Brad -
What code is responsible for creating each of the two window
controllers? Perhaps that code could tell each of the window
controllers about each other. Or, it sounds like your application
isn't document based. Are there ever multiple instances of the two
windows you're currentl
OK XCode doesn't put up any errors or any warnings for this code
and the app works as intended. The code is in an NSViewController, so
I was targeting the view controller's view and then the view's
window. What is the correct approach?
On Sep 12, 2008, at 7:09 PM, Bill Bumgarner wr
Hey Jon,
It is a non-document-based app. Only one instance of each window
should ever be open at one time.
I have an AppController class that is the NSApp delegate. In the
AppController's awakeFromNib I alloc the MainWindowController and
initWithNib. In the MainWindowController, I have
On Fri, Sep 12, 2008 at 3:25 PM, Simon <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> This is a quick question I hope! What's the most efficient way to make the
> progress indicator background transparent (I've got a screen shot of a quick
> test app[1])? Is there away to do this without redrawing the g
On Fri, Sep 12, 2008 at 9:02 PM, Jamie Hardt <[EMAIL PROTECTED]> wrote:
> On Sep 12, 2008, at 5:53 PM, Ken Thomases wrote:
>
>> Cocoa doesn't bother doing a full release/dealloc of your application
>> object (and the things it owns) at application termination. The principle
>> is that the OS is ab
On Sep 12, 2008, at 8:24 PM, Brad Gibbs wrote:
OK XCode doesn't put up any errors or any warnings for this
code and the app works as intended. The code is in an
NSViewController, so I was targeting the view controller's view and
then the view's window. What is the correct approach?
I
Georg Seifert wrote:
[NSView dataWithEPSInsideRect:] does not seem to help, unless I
build a dummy view, draw in it and then use this method.
I believe that's the general idea. An NSBezierPath instance by itself
doesn't really do anything unless/until you draw it into a suitable
graphics
On Sep 12, 2008, at 8:44 PM, Michael Ash wrote:
The NSDocument and any/all associated NSWindowControllers should be
closed and then deallocated when the document itself is closed. If
your window controllers aren't being deallocated then you have a
memory management bug somewhere.
I have observ
75 matches
Mail list logo