On 29 Jul '08, at 11:06 PM, Roger Herikstad wrote:
I have a cocoa program that will read these index files and
fetch the appropriate data from the big file, plot it and store as an
image. I would like to run these print operations in parallel, but I'm
concerned that a conflict will arise if two
On 30 Jul '08, at 9:51 PM, Sumner Trammell wrote:
but it doesn't work. I get *** -[MyDocument window]: unrecognized
selector sent to instance 0x1613ab30 in the run log.
aSender is the WebView in the main window.
self is the MyDocument object, and it has a window outlet that I can
see when I r
NSDocument doesn't implement -window
I think you're getting muddled about what "sender" is and the
relationship between the document and other objects. Using
addChildWindow: should be OK, once you've sorted this out.
hth,
Graham
On 31 Jul 2008, at 2:51 pm, Sumner Trammell wrote:
but it
On Jul 30, 2008, at 8:24 PM, Chris Suter wrote:
On Thu, Jul 31, 2008 at 1:00 PM, Matt Burnett <[EMAIL PROTECTED]
>wrote:
Then shouldn't you be able to determine if they are using a
hackintosh by
the descriptions of support requests they are submitting?
Sure, if customers are willing to d
thanks,
I have a tableView with two columns. Column one lists arbitrary input
numbers. Column two lists monetary (dollar) vales. I want to display the
total running sum of column one in a textField and the dynamic (total)
monetary value of column two in a separate textField at the bottom of the
app
Hi. In my WebKit-based app, there is an occasional popup window, and
I'm trying to make it so that when you move the main window around,
the popup moves as well.
Here is my typical, vanilla WebView delegate method. In it, new
windows are made visible:
- (void)webViewShow:(WebView *)aSender {
Hey Nelson -
The only time you should have to drag a header file to IB is if that
header is used by your project, doesn't come from the system, and is
not in your project either. A header in a second project that your
main project depends on would be an example of this. Otherwise, if
you'
On Jul 30, 2008, at 9:22 PM, Chris Idou wrote:
In a Cocoa document based application, how do you stop it from
initially opening an "empty" document on start up?
(I'm using a core data application if it matters).
Implement...
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender;
In general, NSBundle is a good resource for this.
Try:
NSString* applicationPath = [[NSBundle mainBundle] bundlePath];
This will tell you the path of the application bundle (Fred.app) and
then you'll have to step up one element in the applicationPath to get
the parent directory.
Preston
On Jul 30, 2008, at 9:21 PM, Randy Canegaly wrote:
If I have a Cocoa application named Fred, how do programmatically
(in Fred's code) get the path to the directory where Fred.app is
stored?
[[NSBundle mainBundle] bundlePath];
However, if you want to find stuff inside of your application, yo
On Jul 30, 2008, at 11:21 PM, Randy Canegaly wrote:
If I have a Cocoa application named Fred, how do programmatically
(in Fred's code) get the path to the directory where Fred.app is
stored?
[[NSBundle mainBundle] bundlePath]
Cheers,
Ken
___
Co
In a Cocoa document based application, how do you stop it from initially
opening an "empty" document on start up?
(I'm using a core data application if it matters).
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post ad
If I have a Cocoa application named Fred, how do programmatically (in
Fred's code) get the path to the directory where Fred.app is stored?
Thanks
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
this type of comment isn't productive or appropriate for the list.
scott [moderator]
On 30-Jul-08, at 8:06 PM, Matt Burnett wrote:
The OP needs to get off his high horse and come to the realization
that some people are a bit more clever than him (or Apple). But
anyways you guys all forgot
I'd just like to point out that since hackintoshes are not reliable
machines, it seems a bit odd to search for a reliable way to identify
them.
Dave
On Wed, Jul 30, 2008 at 9:24 PM, Chris Suter <[EMAIL PROTECTED]> wrote:
> I was just making the point that it would be useful to be able to detect
>
Why not have the error messages simply be error messages, and leave
out the "clever" which I think is always a bad idea, anyway, in almost
any domain? Have it report an error that has a number indicating a
possible hackintosh, and double check if it is a hackintosh issue, or
a bug in your
On Thu, Jul 31, 2008 at 1:00 PM, Matt Burnett <[EMAIL PROTECTED]>wrote:
> Then shouldn't you be able to determine if they are using a hackintosh by
> the descriptions of support requests they are submitting?
Sure, if customers are willing to disclose that they're running on a
Hackintosh which is
Then shouldn't you be able to determine if they are using a hackintosh
by the descriptions of support requests they are submitting? If not
are you sure your code checks return values and is designed to fail
gracefully?
On Jul 30, 2008, at 9:27 PM, Chris Suter wrote:
On Thu, Jul 31, 2008 at
On Thu, Jul 31, 2008 at 12:00 PM, Michael Ash <[EMAIL PROTECTED]> wrote:
> On Tue, Jul 29, 2008 at 10:22 PM, John Joyce
> <[EMAIL PROTECTED]> wrote:
> > Does anybody have a means or a tool for checking for hackintoshes?
> > I really don't approve of such things and would like to leave clever
> > m
On Tue, Jul 29, 2008 at 10:22 PM, John Joyce
<[EMAIL PROTECTED]> wrote:
> Does anybody have a means or a tool for checking for hackintoshes?
> I really don't approve of such things and would like to leave clever
> messages on my own software if it is run on a hackintosh.
I really strongly advise a
On Wed, Jul 30, 2008 at 6:22 PM, Randall Meadows <[EMAIL PROTECTED]> wrote:
> On Jul 30, 2008, at 3:43 PM, Nick Zitzmann wrote:
>
>> On Jul 30, 2008, at 3:31 PM, Randall Meadows wrote:
>>
>>> Grrr, seems like I should know this, or at least be able to find out, but
>>> so far, no good.
>>>
>>> What
Sorry for the noise...a clear indication has been given that I need to
stop coding for today:
orderOut: is required to actually close the frickin' window...
Stick a fork in me...
On Jul 30, 2008, at 7:00 PM, Randall Meadows wrote:
OK, here's an interesting one...
I invoke [NSApp runModalFo
OK, here's an interesting one...
I invoke [NSApp runModalForWindow:confirmDeletionWdw] from an IBAction
(call it MethodA) of a popup menu item displayed in a sheet.
That modal window has a button, in whose IBAction (call it MethodB) I
call [NSApp stopModalWithCode:[sender tag]].
The modal
Hi everyone,
I've got an NSArrayController that I'd like to use to populate an
NSMenu for use in an NSStatusItem. Is there a way to do this with
bindings?
Thanks,
Dave
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin r
On Jul 30, 2008, at 8:06 PM, Matt Burnett wrote:
The OP needs to get off his high horse and come to the realization
that some people are a bit more clever than him (or Apple).
... unnecessary and unproductive.
--
I.S.
___
Cocoa-dev mailing list
The OP needs to get off his high horse and come to the realization
that some people are a bit more clever than him (or Apple). But
anyways you guys all forgot something big, virtualization. Can't OS X
Server 10.5 be (legally) virtualized? Any hardware checks will either
break in a virtualiz
Hi Seth,
My experience with focus rings has always been with NSView subclasses, not with
cells. And my focus rings have always been drawn outside their views, adorning
them, as it were. In the past, I have had to invalidate the focus ring's area
with setKeyboardFocusRingNeedsDisplayInRect in
There are also a handful of companies out there that are selling
prebuilt generic PCs with Leopard preinstalled onto them (ie Prystar).
In terms of fighting it with your software it might be best to let
Apple worry about it, but you can most likely pull the system profiler
information and c
On Jul 30, 2008, at 3:43 PM, Nick Zitzmann wrote:
On Jul 30, 2008, at 3:31 PM, Randall Meadows wrote:
Grrr, seems like I should know this, or at least be able to find
out, but so far, no good.
What is the trick to triggering the controlTextDidChange: delegate
method/notification when you
On Jul 30, 2008, at 3:31 PM, Randall Meadows wrote:
Grrr, seems like I should know this, or at least be able to find
out, but so far, no good.
What is the trick to triggering the controlTextDidChange: delegate
method/notification when you set the text of a NSTextField (for
instance) *pro
Grrr, seems like I should know this, or at least be able to find out,
but so far, no good.
What is the trick to triggering the controlTextDidChange: delegate
method/notification when you set the text of a NSTextField (for
instance) *programmatically*?
Thanks!
randy
__
Thanks Rob.
-s
On Wed, Jul 30, 2008 at 3:35 PM, Rob Napier <[EMAIL PROTECTED]> wrote:
> There are likely several ways, but one way is to raise the window's level.
> When you create the window, use [window setLevel:NSFloatingWindowLevel] for
> those windows you want to float.
>
> -Rob
>
> --
> Ro
Hi,
This is probably a simple question, but I'm having a spot of bother
with a bound NSTextView.
In IB I've set the text view's attributedString to be bound to the
file's owner with a model key path of
"document.selectedPage.stringContent". This is fine but when my
document's selectedPage propert
I'm trying to use it exactly as used in the
DragNDropOutlineView example: to use a cell that will be used for
the
entire row (ie a full width cell).
It works in the test app (which doesn't use bindings), but doesn't
work
in my app that uses bindings. I'm able to get the full width cell
look,
On 7/30/08 12:52 PM, Corbin Dunn said:
>> Anyone using NSOutlineView's outlineView:dataCellForTableColumn:item:
>> delegate message?
>
>Yes -- I have used it in a few places.
No doubt. :)
>> I'm trying to use it exactly as used in the
>> DragNDropOutlineView example: to use a cell that will be u
Anyone using NSOutlineView's outlineView:dataCellForTableColumn:item:
delegate message?
Yes -- I have used it in a few places.
I'm trying to use it exactly as used in the
DragNDropOutlineView example: to use a cell that will be used for the
entire row (ie a full width cell).
It works in the
On Jul 30, 2008, at 2:54 PM, Sean McBride wrote:
On 7/30/08 2:06 PM, Abernathy, Joshua said:
Seeing as how the OS itself thinks it's running on Apple hardware, I
have no idea how you, running on the OS, would detect otherwise.
And any solution one comes up with is likely to be fragile and
There are likely several ways, but one way is to raise the window's
level. When you create the window, use [window
setLevel:NSFloatingWindowLevel] for those windows you want to float.
-Rob
--
Rob Napier -- Software and Security Consulting -- http://robnapier.net
On Jul 28, 2008, at 1:58 P
On Wed, Jul 30, 2008 at 3:09 PM, Charles Steinman
<[EMAIL PROTECTED]> wrote:
> I really don't think that's a good idea. Hackintosh builders will just hack
> around it if they care, and you're just asking for the test to get tripped up
> and start accusing legitimate Mac users.
Agreed. A compa
David Harper wrote:
My Cocoa Application is currently in beta, and there is a single
beta tester who insists his registration code is not working. I've
extensively looked into the issue and it seems that the code works
correctly up to the if statement which simply says:
if ([validCode is
On Jul 30, 2008, at 9:50 AM, John Clayton wrote:
I'm wanting to create a CGImageRef from a quartz based CGContextRef,
so that I can feed a CALayer with it. Is there a preferred way of
doing this? I did think of creating a CGLayer, drawing into it's
context, and then creating a CGImageRef
Have you actually determined that -isEqualToString: is returning NO,
or are you concluding that to be the result? Can you send him a
special version that simply has NSLog(@"%@ == [EMAIL PROTECTED] %d", validCode,
enteredCode, [validCode isEqualToString:enteredCode]) and get a
Console log back?
--
On Tue, Jul 29, 2008 at 10:22 PM, John Joyce
<[EMAIL PROTECTED]> wrote:
> I really don't approve of such things and would like to leave clever
> messages on my own software if it is run on a hackintosh.
So what if you "don't care for such things." You are setting yourself
up for a major liability
Hi,
I'm not new to Cocoa, but I haven't had to do much with printing until now.
I'm looking for advice about printing multiple images in varying formats.
I have an app that lets the user reference multiple image files in a list.
I want to allow the user to select however many files from the list
More specifically, create a new object of whatever class your class is
a subclass of (which, in most cases, is NSObject.)
Alex
On Jul 30, 2008, at 1:51 AM, Matthew Schinckel wrote:
Create a new NSObject, and in the Inspector change it to the class
that your header file defines.
On 30/07/2
--- On Tue, 7/29/08, John Joyce <[EMAIL PROTECTED]> wrote:
> Does anybody have a means or a tool for checking for
> hackintoshes?
> I really don't approve of such things and would like to
> leave clever
> messages on my own software if it is run on a hackintosh.
I really don't think that's a go
On 7/30/08 2:06 PM, Abernathy, Joshua said:
>Seeing as how the OS itself thinks it's running on Apple hardware, I
>have no idea how you, running on the OS, would detect otherwise.
And any solution one comes up with is likely to be fragile and possibly
fail with new genuine hardware. IMNSHO, you
Hello,
My Cocoa Application is currently in beta, and there is a single beta tester
who insists his registration code is not working. I've extensively looked into
the issue and it seems that the code works correctly up to the if statement
which simply says:
if ([validCode isEqualToString:ente
Hi all,
Anyone using NSOutlineView's outlineView:dataCellForTableColumn:item:
delegate message? I'm trying to use it exactly as used in the
DragNDropOutlineView example: to use a cell that will be used for the
entire row (ie a full width cell).
It works in the test app (which doesn't use binding
The challenge is what to override in MyDocument such that when I select
"Open..." I can load a file into the currently active window *if* there is
an active window; *and* if no active document window, then do the standard
Cocoa stuff, that is, [super readFromURL ...] and load the file into the
newl
Hi,
There are a couple of ways to definitively test for a hackintosh. You
could look at the IO Registry for unusual hardware configurations. But
as it happens, the latest Hackintosh kernels all use custom Machine
Type strings. So you can test to see if it's one of the known Mac
models, an
On Jul 30, 2008, at 2:26 AM, Torsten Curdt wrote:
For Cocoa, functionality that is supported is made available
through public headers. Functionality that is internal to Cocoa is
encapsulated in private headers that declare said private
interfaces through a combination of categories, class e
Seeing as how the OS itself thinks it's running on Apple hardware, I
have no idea how you, running on the OS, would detect otherwise.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
] On Behalf Of Devon Ferns
Sent: Wednesday, July 30, 2008 12:42 PM
To: Tim McGaughy
Cc:
Hi
I'm wanting to create a CGImageRef from a quartz based CGContextRef,
so that I can feed a CALayer with it. Is there a preferred way of
doing this? I did think of creating a CGLayer, drawing into it's
context, and then creating a CGImageRef via a CIContext
createCGImage:inRect: call
Hi there,
I've come across a somewhat unique problem with writing frameworks,
that I seem unable to find good information about with google. :/
Maybe one of you cocoa luminaries can shed some light on this.
My problem is this:
I have a framework which defines some objects. However I also bui
On Jul 30, 2008, at 3:11 AM, Sumner Trammell wrote:
Hi. Cocoa idioms dictate setFoo: and foo: for setters and getters.
Occasionally, the prefix "get" appears in a Cocoa method, like this
one:
- (void)getObjects:(id *)objects andKeys:(id *)keys
When a method is prefixed with get in Cocoa, wha
Someone hacks the OS X kernel to bypass Apple's checks for a legitimate
Macintosh and usually posts it to some p2p site where people
steal(copyright infringe) it and run it on their home build PCs.
Devon
Tim McGaughy wrote:
On Jul 29, 2008, at 9:22 PM, John Joyce wrote:
Does anybody have a
On Jul 30, 2008, at 8:55 AM, Tim McGaughy wrote:
On Jul 29, 2008, at 9:22 PM, John Joyce wrote:
Does anybody have a means or a tool for checking for hackintoshes?
I really don't approve of such things and would like to leave
clever messages on my own software if it is run on a hackintosh.
On Jul 29, 2008, at 9:22 PM, John Joyce wrote:
Does anybody have a means or a tool for checking for hackintoshes?
I really don't approve of such things and would like to leave clever
messages on my own software if it is run on a hackintosh.
What's a hackintosh?
_
Hi all,
the next meeting of CocoaHeads Swindon will take place on Monday, 4th
August. In a grotesque example of self-promotion, I will be leading a
discussion on "Designing a secure Cocoa application". Details regarding
the time and location can be found on the CH website:
http://cocoaheads.o
From: Jacob Bandes-Storch
I've got several large-size CSV files (a total of about 1.25 million
lines, and an average of maybe 10 or so columns) that I want to parse
into a 2D array. I found some parsing code that uses NSScanner, and it
works fine with small files, but it's very resource-in
On 30/07/2008, at 10:08 PM, [EMAIL PROTECTED] wrote:
Hi there.
My application uses a NSStatusItem. When somebody left-clicks on it
I want
a method to be called (Which I've managed to fix) and then when
somebody
right-clicks on it I want a menu to be shown. I can't seem to get
that to
wo
Hi All,
In my project , I added an executable and created AuthorizationRef
successfully.The AuthorizationCopyRights also worked without
error.But when AuthorizationExecuteWithPrivileges , it shows
the invalid flags error.
Kindly help me.
Thanks In Advance,
Sheen
OSStatus status;AuthorizationR
Hi there.
My application uses a NSStatusItem. When somebody left-clicks on it I want
a method to be called (Which I've managed to fix) and then when somebody
right-clicks on it I want a menu to be shown. I can't seem to get that to
work. If I set a menu for the status item it shows up when somebod
On Wed, Jul 30, 2008 at 6:26 AM, Torsten Curdt <[EMAIL PROTECTED]> wrote:
>>> Any pointers on how this is done?
>>
>> The true question is why you need this ?
>> I don't see any valid reason to require this kind of constraint.
>
> Well, those ivars while private still expose internal classes to the
On Wed, Jul 30, 2008 at 2:06 AM, Roger Herikstad
<[EMAIL PROTECTED]> wrote:
> Hi,
> I was wondering if anyone on the list has a solution for my problem.
> I'm keeping a number of files containing indices into a big (>2GB)
> data file. I have a cocoa program that will read these index files and
> f
On Tue, Jul 29, 2008 at 10:07 PM, Greg Parker <[EMAIL PROTECTED]> wrote:
> Michael Ash wrote:
>>
>> On Tue, Jul 29, 2008 at 2:04 PM, Bill Bumgarner <[EMAIL PROTECTED]> wrote:
>>>
>>> Or you could annotate a function as a constructor. It will run before
>>> main().
>>> static void __InitializeGloba
Any pointers on how this is done?
The true question is why you need this ?
I don't see any valid reason to require this kind of constraint.
Well, those ivars while private still expose internal classes to the
interface. I would like to avoid that for encapsulation purposes.
Does that make
Le 30 juil. 08 à 11:26, Torsten Curdt a écrit :
Where does it say that protocols can't include class methods? If
there is documentation indicating as much then there is a bug
somewhere and I'd like to know about it.
The following works as expected -- the compiler complains mightily
abou
On Jul 30, 2008, at 08:14, Simone Tellini wrote:
Keep a prepared SQLite insert statement and reuse it for all the
lines, binding the parameters for each line. Don't load the whole
file in memory: it's just a waste of memory and time to allocate it.
Instead parse a line at a time.
mmap() m
Where does it say that protocols can't include class methods? If
there is documentation indicating as much then there is a bug
somewhere and I'd like to know about it.
The following works as expected -- the compiler complains mightily
about the lack of conformance to protocol Bob in class
Create a new NSObject, and in the Inspector change it to the class
that your header file defines.
On 30/07/2008, at 12:09 PM, Nelson Hazeltine wrote:
I am new to IB and Cocoa.
When I drag and drop a header file containing interface information
to the XIB dock, it doesn't work, i.e., nothi
Hi,
I was wondering if anyone on the list has a solution for my problem.
I'm keeping a number of files containing indices into a big (>2GB)
data file. I have a cocoa program that will read these index files and
fetch the appropriate data from the big file, plot it and store as an
image. I would li
I am new to IB and Cocoa.
When I drag and drop a header file containing interface information to
the XIB dock, it doesn't work, i.e., nothing happens. As near as I
can tell, the header file is okay. I am wanting to get the the object
browser.
Any suggestions?
__
At 11:02 PM +0200 29/7/08, Torsten Curdt wrote:
Especially for a framework I don't want to expose implementation
details to the interface.
Others have pointed out that you cannot add ivars in the implementation.
However, if you can control the creation of your objects via a
factory function o
the "get" idiom means that you are passing in pointer arguments to
the method, and the method will mutate(modify) the pointed-to
objects. It's an alternate way of retrieving data from a method call
as opposed to the usual function return value.
Rob Ross, Lead Software Engineer
E! Networks
Hi, is anyone else having problems with the WebView inspector in
Interface Builder 3.0?
I have a window with a WebView on it in MyDocument.nib.
When I open MyDocument.nib, the WebView attributes inspector shows
font sizes of 12 and 12 for default and fixed fonts. It also shows
Java enabled.
I
Hi. Cocoa idioms dictate setFoo: and foo: for setters and getters.
Occasionally, the prefix "get" appears in a Cocoa method, like this
one:
- (void)getObjects:(id *)objects andKeys:(id *)keys
When a method is prefixed with get in Cocoa, what is being expressed?
Thanks,
-s
On Jul 30, 2008, at 12:36 AM, Torsten Curdt wrote:
Even more interesting :) Thanks for sharing that Bill.
I've had another idea: Using a protocol would also be a way of
shielding the framework from the implementation details.
The only problem is that class methods are not allowed in a
protoc
Even more interesting :) Thanks for sharing that Bill.
I've had another idea: Using a protocol would also be a way of
shielding the framework from the implementation details.
The only problem is that class methods are not allowed in a protocol.
And the framework's main entry class currently u
80 matches
Mail list logo