On Wed, Sep 17, 2008 at 8:46 PM, Chris Idou [EMAIL PROTECTED] wrote:
I've got a NSTableView controlled by an NSArrayController, which uses an
array of NSMutableDictionaries as its controlled objects. One of the columns
is a checkbox. These dictionaries are ultimately stored in the user's
On Wed, Sep 17, 2008 at 3:04 PM, Nick Beadman [EMAIL PROTECTED] wrote:
The issue I am having is that I want my NSPanel to have the title bar on the
(left) side. In Carbon there is an WindowAttribute
(kWindowSideTitlebarAttribute) which makes this trivial but I can't find
anything equivalent in
I want to know when my computer connects/disconnects to WiFi/AirPort
network.
Is there a way to get the status of connection to a WiFi network. I tried
using System Configuration API,but I could not get the status. Here is the
snippet
--
static void
Hi all
In my cocoa application i want to find out if there is a network
connection exists or not ?
-The Coneection or disconnection of the network should be notified to
my cocoa application
Any suggestions?
Regards
kiran sanka
___
On Sep 18, 2008, at 00:50 , Rashmi Vyshnavi wrote:
I want to know when my computer connects/disconnects to WiFi/AirPort
network.
Is there a way to get the status of connection to a WiFi network. I
tried
using System Configuration API,but I could not get the status. Here
is the
snippet
--
On 18 Sep 2008, at 11:18, Florian Soenens wrote:
Hi list,
anyone knows why in this simple piece of code, the method testTimer
is only called once and not every 2 seconds?
Thanks in advance;
Florian.
#import Controller.h
@implementation Controller
-(void) awakeFromNib
{
Stupid me!
Thanks for the responses, works fine now...
On 18 Sep 2008, at 11:33, Thomas Davie wrote:
On 18 Sep 2008, at 11:18, Florian Soenens wrote:
Hi list,
anyone knows why in this simple piece of code, the method testTimer
is only called once and not every 2 seconds?
Thanks in
In last March I downloaded the iPhone SDK 2.09 GB in size. And now today I
downloaded the latest version of this SDK i.e.
iphone_sdk_for_iphone_os_2.1__final but this time the file size is 1.38 GB.
Where are the remaining 600 MBs [- Or -] XCode other development stuff are
already there in the
unfortunately you can't ask questions about iPhone SDK here, even if
they seem innocuous. In general if I download something and it works
fine I don't worry too much about it, I know that generic XCode releases
are all sorts of sizes.
Waqar Azeem wrote:
In last March I downloaded the iPhone
On Sep 17, 2008, at 10:25 AM, dreamcat7 wrote:
I am stuck finding a solution for my array of arrays problem. - A
problem with a twist !
Quincy Morris has already explained that
bind:toObject:withKeyPath:options: doesn't do what you guessed it might.
Here's how I would explain it (after
In my app I'd like to check for system idle time, and perform an
action after a set amount of time. I've found this code to check for
system idle time
http://www.cocoabuilder.com/archive/message/cocoa/2004/10/27/120354
is this still the best way to do it on leopard?
cheers,
memo.
Hi all - I need some help with core data fetching...
I have 1:N relationship between Project and Measurement entities. I
add all objects to managed context programatically using +
[NSEntityDescription
insertNewObjectForEntityForName:inManagedObjectContext]. First I add
Project object,
Hi,
I am developing application software for Mac and Windows.
Most of the code is developed using ObjectC - this way most of the
code can be used for both OS. Only the OS depending stuff - like
showing dialogs, menus... - is separated.
The problem: how can I show and handle a modal dialog
Le 18 sept. 08 à 15:12, brodhage a écrit :
Hi,
I am developing application software for Mac and Windows.
Most of the code is developed using ObjectC - this way most of the
code can be used for both OS. Only the OS depending stuff - like
showing dialogs, menus... - is separated.
The
On Thu, Sep 18, 2008 at 02:05:03PM +0200, Tomaž Kragelj wrote:
If I use the same code for fetching immediately after adding the objects
to the context, the fetching works... It looks like the problem might be
related to fact that I use different persistent store for Project than
for
I am having trouble getting it to compile. From what I understand
there must be an extern C before the inclusion of the C lib's header
files.
I still get a link error. Is there anything else to it ?
___
Cocoa-dev mailing list
Sorry, I forgot to say that I was already doing that. And it does
build, my problem is in the link stage.
On Sep 18, 2008, at 3:00 PM, Negm-Awad Amin wrote:
Am Do,18.09.2008 um 15:55 schrieb Daniel Luis dos Santos:
I am having trouble getting it to compile. From what I understand
there
Hi,
thank you very much for your quick answer, Jean-Daniel.
If you want a complexe dialog...
Yes. So I guess CFUserNotification does not help.
I don't understand why using NSApp for this kind of works will
have an impact on the remaining of you application though.
Just because a lot of
On 18 Sep 2008, at 11:44, Ken Thomases wrote:
1) If you for some reason find that using bindings with NSTableView
is too restrictive, you might want to think about falling back to
the pre-bindings way of populating a table view: the data source.
Yes, noted.
2)... If you implement the
Howdy,
I think the following syntax is the right idea:
extern C { extern void MyFunction(void *args);
}
However, because it is insanely late, I may be wrong. If you have a look at
the headers for Apple's frameworks (eg: one of the Core Foundation headers)
you'll see how you should do it.
On Thu, Sep 18, 2008 at 12:50 AM, Rashmi Vyshnavi
[EMAIL PROTECTED] wrote:
I want to know when my computer connects/disconnects to WiFi/AirPort
network.
Is there a way to get the status of connection to a WiFi network. I tried
using System Configuration API,but I could not get the status. Here
Hello,
I'm trying to figure out how to get a blocking call to -[NSRunLoop
runMode:beforeDate:] to return. It seems the best way to do this is
to use a real (non-timer) input source to poke the run loop, as
mentioned by Chris Kane in this post:
Le 18 sept. 08 à 16:15, brodhage a écrit :
Hi,
thank you very much for your quick answer, Jean-Daniel.
If you want a complexe dialog...
Yes. So I guess CFUserNotification does not help.
I don't understand why using NSApp for this kind of works will
have an impact on the remaining of
On Sep 18, 2008, at 7:53 AM, Kiel Gillard wrote:
Howdy,
I think the following syntax is the right idea:
extern C { extern void MyFunction(void *args);
}
I'm not sure about the duplicate 'extern'. Here's what I use in my code:
extern C void MyFunction(void *args);
or you can also do
Hi,
thank you very much again for your quick answer, Jean-Daniel.
In theorie, you can safely call NSApplicationLoad()
I allready do.
... create you own auto release pool
I allready do. And then I call this function (within subclass of
NSWindowController):
- (void)showModalDialog
{
iPhone SDK
--
Until an announcement is made otherwise, developers should be aware
that the iPhone SDK is still under non-disclosure (section 5.3 of the
iPhone Development Agreement). It can't be discussed here, or anywhere
publicly. This includes other mailing lists, forums,
iPhone SDK
--
Until an announcement is made otherwise, developers should be aware
that the iPhone SDK is still under non-disclosure (section 5.3 of the
iPhone Development Agreement). It can't be discussed here, or anywhere
publicly. This includes other mailing lists, forums,
Hi all,
I found a tricky thing in Tiger: In Nib file, I have a NSScrollView in
the window, and I put an NSImageView all above it, for I don't want to see
the scrollView. But when window shows, I can see the scroller! In Leopard,
the imageview covers the scroller. Did I miss something?
The methods for finding applications,
-[NSWorkspace fullPathForApplication:]
-[NSWorkspace absolutePathForAppBundleWithIdentifier:]
AppleScript's 'path to application'
all return only ONE result. If there is more than installation of the
application, which often happens out here in
Am 17.09.2008 um 22:46 schrieb Bill Bumgarner:
Every example included with the developer tools should work under
GC. If it does not, then it is a bug and, please, do file it.
Ok, I've filed a bug.
___
Cocoa-dev mailing list
On Sep 18, 2008, at 3:53 AM, [EMAIL PROTECTED] wrote:
Hi all,
I found a tricky thing in Tiger: In Nib file, I have a NSScrollView
in
the window, and I put an NSImageView all above it, for I don't want
to see
the scrollView. But when window shows, I can see the scroller! In
Leopard,
the
I am showing a WebView in a regular window. When I try to load a site
that will prompt for authentication, the web view slides out a sheet
in its containing window, asking for user name and password. After
entering the correct name and password, the web view does not continue
loading any
On Thu, 18 Sep 2008 12:03:42 +0100, Memo Akten [EMAIL PROTECTED] said:
In my app I'd like to check for system idle time, and perform an
action after a set amount of time. I've found this code to check for
system idle time
http://www.cocoabuilder.com/archive/message/cocoa/2004/10/27/120354
is this
On Sep 18, 2008, at 1:47 PM, Jerry Krinock wrote:
The methods for finding applications,
-[NSWorkspace fullPathForApplication:]
-[NSWorkspace absolutePathForAppBundleWithIdentifier:]
AppleScript's 'path to application'
all return only ONE result. If there is more than installation of
on 2008-09-18 7:03 AM, Memo Akten at [EMAIL PROTECTED] wrote:
In my app I'd like to check for system idle time, and perform an
action after a set amount of time. I've found this code to check for
system idle time
http://www.cocoabuilder.com/archive/message/cocoa/2004/10/27/120354
is this
I found this page to be helpful:
http://developer.apple.com/qa/qa2001/qa1133.html
It's about the currently-logged in user, but the MyNotificationProc
callback is called for a lot of changes, including IIRC the network
connection transitions.
In the callback function you can do something
Greetings.
I'm looking thru the examples for NSOperation -- my god thread made
easy, what a dream come true.
I noticed the [Object new] message instead of [[Object alloc]init]
i've been looking for the diference, and couls not yet find it in the
documentation.
could someone explain ?
Hi,
I'm trying to draw an NSImage (a PNG) in a CALayer. The goal is to
create a method that allows me to pass an NSImage as an argument to
create a layer-hosting view. I have:
-(id)drawButton: (NSView *)button withImage:(NSImage *)anImage {
...
// image layer
imageLayer=[CALayer
IIRC, isEqual: compares memory addresses, whereas isEqualTo: compares
hashes of the objects being compared. I also believe that isEqual: is
the preferred method.
Cheers,
Dave
On Sep 18, 2008, at 3:57 PM, Rick Mann wrote:
I see that NSObject (and its protocol) define -isEqual: and -
On Sep 18, 2008, at 2:59 PM, Dave DeLong wrote:
IIRC, isEqual: compares memory addresses, whereas isEqualTo:
compares hashes of the objects being compared. I also believe that
isEqual: is the preferred method.
isEqual: does not compare addresses. That's what == is for. Two
distinct
On Sep 18, 2008, at 2:54 PM, Brad Gibbs wrote:
I'm trying to draw an NSImage (a PNG) in a CALayer. The goal is to
create a method that allows me to pass an NSImage as an argument to
create a layer-hosting view. I have:
Where is this PNG originating? The answer may mean a simpler (and
You've got some fundamental issues here. This call in particular:
imageLayer drawLayer:imageLayer inContext:ctx];
It doesn't make sense.
-drawLayer:inContext is a delegate method. You are overriding drawing
functionality for the layer in question. Instead you would set the
layer's delegate
On Sep 18, 2008, at 5:15 PM, Charles Srstka wrote:
On Sep 18, 2008, at 4:59 PM, Dave DeLong wrote:
IIRC, isEqual: compares memory addresses, whereas isEqualTo:
compares hashes of the objects being compared. I also believe that
isEqual: is the preferred method.
The documentation says
On Sep 18, 2008, at 15:15:11, Charles Srstka wrote:
According to the documentation, isEqualToString: is faster when you
know both objects are strings. I'm not sure what isEqualTo: is for,
though.
Thanks to all for the answers.
I thought isEqualTo was a method on NSObject, but I realize
I've written a couple of cute little memory games. If anyone is
interested in creating an iPhone interface for them, please contact me
off-list.
dkj
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or
On Sep 18, 2008, at 3:18 PM, Matt Long wrote:
You've got some fundamental issues here.
That doesn't surprise me...
This call in particular:
imageLayer drawLayer:imageLayer inContext:ctx];
It doesn't make sense.
-drawLayer:inContext is a delegate method. You are overriding
drawing
On Sep 18, 2008, at 6:23 PM, Rick Mann wrote:
I thought isEqualTo was a method on NSObject, but I realize now it's
part of the NSComparisonMethods Protocol.
The whole thing strikes me as a bit messy.
Also note which header that category lives in - NSScriptWhoseTests.h.
That provides
if two objects compare equal, then they must have the same hash
[...] [you] have to implement a corresponding -hash that maintains
this invariant rule.
Is there an example somewhere of what one should do to implement -hash
to reflect -isEqual:, I haven't done so in one of my classes and it
Woua cool ...
Thank you Nick!
my assumption was incorrect.
Sandro
On 18-Sep-08, at 5:04 PM, Nick Zitzmann wrote:
On Sep 18, 2008, at 2:50 PM, Sandro Noel wrote:
couls someone point me to the doc ?
On Sep 18, 2008, at 3:33 PM, Brad Gibbs wrote:
The PNG is in the main bundle -- in my Resources folder.
You can do this to get a CGImageRef directly. (written in Mail, no
error checking).
CFURLRef imageURL = CFBundleCopyResourceURL(CFBundleGetMainBundle(),
(CFStringRef)@myImage.png,
On Thu, Sep 18, 2008 at 4:19 PM, Keith Duncan [EMAIL PROTECTED] wrote:
if two objects compare equal, then they must have the same hash [...]
[you] have to implement a corresponding -hash that maintains this invariant
rule.
Is there an example somewhere of what one should do to implement -hash
On Sep 18, 2008, at 7:32 PM, Shawn Erickson wrote:
On Thu, Sep 18, 2008 at 4:19 PM, Keith Duncan [EMAIL PROTECTED]
wrote:
if two objects compare equal, then they must have the same hash
[...]
[you] have to implement a corresponding -hash that maintains this
invariant
rule.
Is there an
Kyle,
Thanks for the reply.
On Sep 18, 2008, at 12:08 am, Kyle Sluder wrote:
On Wed, Sep 17, 2008 at 3:04 PM, Nick Beadman [EMAIL PROTECTED]
wrote:
The issue I am having is that I want my NSPanel to have the title
bar on the (left) side. In Carbon there is an WindowAttribute
On Sep 18, 2008, at 4:39 PM, Jim Correia wrote:
On Sep 18, 2008, at 7:32 PM, Shawn Erickson wrote:
On Thu, Sep 18, 2008 at 4:19 PM, Keith Duncan [EMAIL PROTECTED]
wrote:
if two objects compare equal, then they must have the same hash
[...]
[you] have to implement a corresponding -hash
On Sep 18, 2008, at 5:33 PM, Ken Thomases wrote:
Another counterexample is an object which doesn't provide value
semantics. That is, its -isEqual: only tests identify (pointer
comparison) and whose hash is purely based on the object pointer.
..or say a person object which is considered
On Sep 18, 2008, at 8:36 PM, Shawn Erickson wrote:
On Sep 18, 2008, at 4:39 PM, Jim Correia wrote:
Additional care must be taken if you are implementing a mutable
object and intend to store it in a collection: the object's -hash
cannot change while it is in the collection (so effectively,
On Sep 18, 2008, at 7:43 PM, Chris Idou wrote:
Well I do have the checkbox bound to the controller. It is bound to
one of the attributes in the array of mutable dictionaries contained
within my NSArrayController.
But I don't see how this lets me get control to do something when
someone
Yes I can put an action on the ButtonCell, but this doesn't tell me
which record in the array the clicked cell relates to.
Why does everybody forget about / ignore NSTableDataSource?
On Sep 18, 2008, at 8:54 PM, Jim Correia wrote:
Since mutable framework provided objects can (and do) change hash
values as they are mutated, I agree with your tenuous classification
of the situation. In the general case, storing mutable objects in
hash-table like collections outside of a
--- On Thu, 9/18/08, Ken Thomases [EMAIL PROTECTED] wrote:
Two possibilities:
* If you used a custom class rather than a dictionary, then
there
would be a setter of your own design called when the
property is set
due to a change in the checkbox.
Yes I could do that, but given that
I have a question. We are designing a private frame work to wrap our
data handling. The framework is using Core Data with an SQL back end.
However we get errors when loading data if the model file is not
included in the application and is just in the framework. I looked
through the docs
On Sep 17, 2008, at 12:03 PM, Memo Akten wrote:
Hi All, I'd like to create a little app the runs a quicktime movie
(prores) fullscreen across multiple monitors. I think I can figure
out the QTKit stuff, but couldn't find upto date documentation on
going fullscreen. I've found some code
On Wed, Sep 17, 2008 at 3:03 PM, Memo Akten [EMAIL PROTECTED] wrote:
Hi All, I'd like to create a little app the runs a quicktime movie (prores)
fullscreen across multiple monitors. I think I can figure out the QTKit
stuff, but couldn't find upto date documentation on going fullscreen. I've
Hi,
I work on a projetc where the executable haven't GUI but I can launch somme
gui window with plugins.
test - no gui application
-plugin
-triangle - this plugin display a triangle in a cocoa window
-rectangle - this plugin display a rectangle in a cocoa window
All plugins works in
Greetings.
I would like to use NSPredicateEditor to build a filtering string to
filter out items from an array.
but i cant seem to find a tutorial on the matter, and the cocoa
documentation gets me lost, there is not enough information in there
for me to really grasp what i should do to make
65 matches
Mail list logo