> On Jan 4, 2017, at 2:00 PM, cocoa-dev-requ...@lists.apple.com wrote:
>
> Hi all
> I would like to get your experience of using tableViewSelectionDidChange
> notification of NSTableView. I have 2 table using in my application. When I
> click first table row, it is selected and row shown as
I have an NSStatusItem app that I’ve had to migrate to a sandboxed app for
release in the MAS. In its preferences window, there is a checkbox for “Launch
at login”. If I launch the app with no preferences set (i.e. defaults delete
my.bundle.identifier, rm
I posted this on SO, but got no answers, so I'm trying here and mabe I
can get some help.:
I have a window into which I horizontally add two subviews. Into each
subview, I place a variable number of subviews made up of a vertical
slider, a text field rotated 90 degrees and placed to the left
On May 6, 2014, at 5:31 PM, Daniel Höpfl ap...@hoepfl.de wrote:
Hi,
On 06.05.2014 23:32, lorenzo wrote:
I posted this on SO, but got no answers, so I'm trying here and mabe I
can get some help.:
I have a window into which I horizontally add two subviews. Into each
subview, I place
On 2014-04-14 09:28, Fritz Anderson wrote:
On 13 Apr 2014, at 11:01 PM, Lorenzo Thurman lore...@thethurmans.com
wrote:
I have an NSView with two subviews (A B) placed horizontally with
respect to each other. The subviews can take a variable number of
uniformly sized subviews. I’ve placed
On 2014-04-14 12:39, Kyle Sluder wrote:
On Mon, Apr 14, 2014, at 10:20 AM, lorenzo wrote:
On 2014-04-14 09:28, Fritz Anderson wrote:
What constraints are you putting on the subviews you add dynamically to
A and B?
The subviews, a subclass of NSView, are made up of three views, a
vertical
I have an NSView with two subviews (A B) placed horizontally with respect to
each other. The subviews can take a variable number of uniformly sized
subviews. I’ve placed these constraints on subviews A B, (all done in IB):
(They should both have the same height)
Top space to container
Bottom
I have to add a variable number of NSSliders to a custom view, (although,
probably no more than eight). I’d like these items centered within the view,
but am unsure how to achieve this. I know I could probably “do the math” and
just calculate the position of each as its added, but I thought I
Thanks, I should have known that.
On Mar 1, 2014, at 11:55 PM, Kyle Sluder k...@ksluder.com wrote:
On Sat, Mar 1, 2014, at 09:19 PM, Lorenzo Thurman wrote:
I have to add a variable number of NSSliders to a custom view, (although,
probably no more than eight). I’d like these items centered
I'm returning to a project after having upgraded to Xcode 5 a couple of
weeks ago and I'm getting this error:
iCloud sync fails with CoreData: Ubiquity: Invalid option: the value for
NSPersistentStoreUbiquitousContentNameKey should not contain periods
I never saw this in later versions of Xcode
rather than GMT referential.
Sent from my iPhone
On 2013/09/05, at 13:21, Lorenzo Thurman lore...@thethurmans.com wrote:
Im working with NSTimezone and I need to get the current timezone offset,
but I'm finding this more difficult than I think it should be. I thought it
might just
Im working with NSTimezone and I need to get the current timezone offset, but
I'm finding this more difficult than I think it should be. I thought it might
just be the way I'm looking at things, but I don't think so.
If create an NSTimezone object and then send that object a
On Apr 20, 2012, at 9:32 AM, Keary Suska wrote:
On Apr 20, 2012, at 6:08 AM, Lorenzo Thurman wrote:
On Apr 19, 2012, at 10:18 PM, Keary Suska wrote:
Perhaps this excerpt from the API doc is key: Do not use these constants
if you want an exact format. Why, might be academic, but if you
On Apr 20, 2012, at 9:32 AM, Keary Suska wrote:
On Apr 20, 2012, at 6:08 AM, Lorenzo Thurman wrote:
On Apr 19, 2012, at 10:18 PM, Keary Suska wrote:
Perhaps this excerpt from the API doc is key: Do not use these constants
if you want an exact format. Why, might be academic, but if you
setFormatterBehavior:NSDateFormatterBehavior10_4]
this fixed it.
Thanks for the help
Yes Virginia, there is a Chaminade
--unknown
Lorenzo Thurman
lore...@thethurmans.com
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests
setFormatterBehavior:NSDateFormatterBehavior
Yes Virginia, there is a Chaminade
--unknown
Lorenzo Thurman
lore...@thethurmans.com
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact
My Break-Dancing days are over, but there's always the Funky Chicken -- The
Full Monty
On Apr 20, 2012, at 3:47 PM, Keary Suska cocoa-...@esoteritech.com wrote:
On Apr 20, 2012, at 12:16 PM, Lorenzo Thurman wrote:
I agree. This should not happen, but here is my original code
attempts to
connect. So I added a sleepForInterval:10 to make my app wait a bit before
connecting. This seems to work just fine, but question is:
Is there a more elegant way to handle this?
TIA
Lorenzo Thurman
lore...@thethurmans.com
___
Cocoa
On Apr 12, 2012, at 9:33 AM, Fritz Anderson wrote:
On 10 Apr 2012, at 4:41 PM, Lorenzo Thurman wrote:
I have an app which attempts to make an internet connection after receiving
an NSWorkspaceDidWake notification. Most of the time, the connection fails
with the error, ...internet
On Mon, May 2, 2011 at 3:15 PM, Quincey Morris
quinceymor...@earthlink.netwrote:
On May 2, 2011, at 12:47, lorenzo7...@gmail.com wrote:
anotherItemController
Content Array
Bind to: MyAppsClass (added an NSObject from palette and set its class to
MyAppsClass)
Controller Key:
On Fri, Apr 29, 2011 at 3:18 PM, Quincey Morris quinceymor...@earthlink.net
wrote:
Your description of the problem is a bit fuzzy. Let me nitpick at your
description -- it may be that if you straighten out your terminology you'll
solve your problem:
On Apr 29, 2011, at 12:56, Lorenzo
I have an NSTableView column bound to an NSArrayController which itself
is bound to an NSMutableArray. The mutable array resides in a different XIB.
The data is displayed as expected, but when I remove an item, although it
does disappear from the table, the
change is not written to disk when the
On Wed, Feb 16, 2011 at 12:23 AM, Stephen J. Butler
stephen.but...@gmail.com wrote:
On Wed, Feb 16, 2011 at 12:05 AM, Stephen J. Butler
stephen.but...@gmail.com wrote:
It works, I just wrote up an example. But unfortunately my
universities file storage is crapping out and I can't share it
I have an object, Student, that contains firstName and lastName as instance
variables. Student also contains an NSMutableArray of infraction objects
that contains NSString's for the infraction name, location, punishment and
an NSDate. I want to bind these infraction objects to the columns of an
On Feb 15, 2011, at 10:42 PM, Stephen J. Butler stephen.but...@gmail.com
wrote:
On Tue, Feb 15, 2011 at 10:37 PM, Lorenzo Thurman lorenzo7...@gmail.com
wrote:
I have an object, Student, that contains firstName and lastName as instance
variables. Student also contains an NSMutableArray
On Feb 10, 2011, at 8:55 AM, Dave Reed davel...@mac.com wrote:
On Feb 9, 2011, at 9:44 PM, lorenzo7...@gmail.com wrote:
I have a NSTableView populated by an NSArrayController. Above the table, I
have an NSToolbar, to which I would like add the ability to search. I have
found a
the user to address it and send. That
should not be too difficult, I should think. Is an Automator action the way
to go? Can someone help me out?
Thanks
HI Lorenzo,
If you need to support multiple versions of the OS have 3 options really :
1)
Use
Thanks for the reply. I'll likely go this route for now and just exclude
support for all non-Mail.app clients.
On Tue, Feb 1, 2011 at 4:33 PM, Tim Schröder t...@timschroeder.net wrote:
Lorenzo,
at least with Thunderbird I have found it impossible to communicate with
from a Cocoa app
I have a customer request to sync application preferences between Macs and
iPhone. The user may not have a MobileMe account, so Sync Services is not an
option (or is it?). The user data would be stored in a plist on both
platforms and I'm trying to find the best way to keep those in sync. Any and
I use two NSTimers in my app. One runs a mini data fetch at regular
intervals. I use another to run a full data fetch every 4 hours. The
problem I'm running into is that while the mini fetch runs as scheduled, the
full fetch never runs. I put some NSLog statements in the code to output the
-It's better now and the menu stays after a --slight flickering
In case no one has responded to the flickering issue yet (on 10.5?).
It may be a known bug. You'll have to disable screen updates just
before the call that causes the flickering. And re-enable it just
after. I think the macros
Sorry for the late reply..
I will try it today, but something weird is that I did a fresh new
test project and didn't work either.
Just a stab in dark, but does your Language and Text setup match the
localization?For example, you have a French localization (fr_FR), but
are you setup
I've been googling but haven't seen yet how to best validate a 5-digit
zipcode for use in the US (without using a webservice).
I have the NSString, I just need to validate it. I know zero RegExp, is
there a formatter I can use?
I actually ran into a similar issue with one of my programs
Why can't iPhone apps use GC? Is it resources? Performance? Some
combination of the two or other reasons altogether?
Just curious, thanks.
--My break-dancing days are over, but there's always the funky chicken
The Full Monty
___
Cocoa-dev mailing
I have an NSStatusItem where I am using an NSWindow as it's About Box.
When displayed, I can close the window via a mouse click, but not with
the cmd w shortcut. I've looked In Apple documents about this, but the
documentation assumes a document based app where this action is tied
to the
I have text in a UITextView which *may* contain a URL. I would like to
intercept any tap on the URL and display the html page in an UIWebView in my
app. Can anyone point me to some sample code that does this? Or is it even
possible?Thanks!
--
My break-dancing days are over, but there's always
) is valid, etc. I guess I'll have
to keep looking until I find out what's going on. Thanks for the reply.
On Mon, Aug 31, 2009 at 6:44 PM, Steven Degutis steven.degu...@gmail.comwrote:
Lorenzo,
My first guess would be that you must have turned on garbage collection at
some point, and have
I have two applications, both NSStatusItems. Upon upgrading to Snow Leopard
(from 10.5), I've found that none of the messages associated with the menu
items are called. As near as I can tell, the messages are never dispatched,
at least the breakpoints in the methods are never hit. I can't find
I have a program which needs to run under 10.4, but I used a method that
is only defined for 10.5. No biggie, it was easy enough to replace it
with something that works for 10.4. The problem is that I didn't find
this out until I ran the app under 10.4. My apps deployment target is
set to
temporarily and see what errors you get. You can then make sure you're
doing the appropriate runtime checks.
steve
On Jun 27, 2009, at 6:34 PM, Lorenzo Thurman wrote:
I have a program which needs to run under 10.4, but I used a method that
is only defined for 10.5. No biggie, it was easy
The link to storing NSColor in defaults was helpful. It reinforced what I
thought I already knew, but it appears that real problem was storing a
system color, [NSColor selectedMenuItemColor], instead of a color constant
such as [NSColor blueColor]. I created a simple project just to help
I've just added an NSColorWell to my application. I bound it to my
NSUserDefaultsController with a controller key of values, model key path
values and a value transformer of NSUnarchiveFromData. When I run my program
and click on the color well, I get this error in the console:
Assertion
10.06.2009 um 18:13 schrieb Lorenzo Thurman:
I've just added an NSColorWell to my application. I bound it to my
NSUserDefaultsController with a controller key of values, model key path
values and a value transformer of NSUnarchiveFromData. When I run my
program
and click on the color well, I get
http://developer.apple.com/documentation/Cocoa/
Conceptual/DrawColor/Tasks/StoringNSColorInDefaults.html
My break-dancing days are over, but there's always the funky chicken
--The Full Monty
Thanks, this page helped.
___
Cocoa-dev mailing list
--My break-dancing days are over, but there's always the funky chicken
The Full Monty
On Jun 9, 2009, at 5:28 PM, Dave Keck davek...@gmail.com wrote:
Personally, I've found zombies to be perfect in tracking down
over-releases. Check out 'NSZombieEnabled'.
I did have that enabled. Apologies
I've heard good things about pantomime though haven't used it myself
(and I understand it has a few gotchas related to international
characters).
It might also be worth looking into solutions accessible via the
scripting bridge as my experience has been that languages such as
Python offer
have to delete an object and
prevent to work with a null pointer. Any suggestion?
Best Regards
--
Lorenzo
email: [EMAIL PROTECTED]
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list
Thank you so much Ken,
I would like to use the BSD/POSIX file access routines.
May you give me a pointer?
Best Regards
--
Lorenzo
email: [EMAIL PROTECTED]
From: Ken Thomases [EMAIL PROTECTED]
Date: Thu, 22 May 2008 23:42:00 -0500
To: Lorenzo [EMAIL PROTECTED]
Cc: Jens Alfke [EMAIL PROTECTED
(not yet
the whole file). So I switched to
NewFNSubscriptionUPP
FNSubscribe
Here I get the notification only after a file has been totally copied into
the folder, but I can't yet find the way to know which file has been copied.
Do you know how to get that info? Thanks.
Best Regards
--
Lorenzo
Hi,I have just seen that the API
[NSMailDelivery deliverMessage:...
As been deprecated in Leopard. Is anyone know about a replacement?
I know that I can still use it, but you know, just in case...
Best Regards
--
Lorenzo
email: [EMAIL PROTECTED
know that there are 2 new files.
Well, one file is totally copied and the other one could be still in
copying.
Best Regards
--
Lorenzo
email: [EMAIL PROTECTED]
From: Jens Alfke [EMAIL PROTECTED]
Date: Thu, 22 May 2008 16:35:01 -0700
To: Lorenzo [EMAIL PROTECTED]
Cc: cocoa-dev@lists.apple.com
Hi,
I'm using web-kit for loading an svg map in my application, I want to
store the map data in memory for redisplay with some mods (like
changing the colors at given population data etc.).
I'm thinking to trasform svg data in xml plain data and managing an
nsxmldocument for storing changes
On Tue, Apr 29, 2008 at 7:36 PM, Jens Alfke [EMAIL PROTECTED] wrote:
On 29 Apr '08, at 6:27 AM, Lorenzo Thurman wrote:
I tried loading the XML into an NSString using
initWithContentsOfURL:encoding:error using Latin1 encoding. Under Leopard,
the XML is read in just fine. I can output
--
Lorenzo
email: [EMAIL PROTECTED]
From: Nick Zitzmann [EMAIL PROTECTED]
Date: Mon, 28 Apr 2008 01:34:46 -0600
To: Lorenzo [EMAIL PROTECTED]
Cc: cocoa-dev@lists.apple.com
Subject: Re: Leopard on PPC
On Apr 28, 2008, at 1:31 AM, Lorenzo wrote:
8 com.apple.Foundation 0x951a1ba0
I'm using NSXMLParser to read an XML document from a server via
initiWithContentsOfURL. This works just fine under Leopard. I can read and
parse the data just fine, but under Tiger, I get an empty document error:
NSXMLParserErrorDomain = 4 (Empty document). There are several posts in the
archives
and mScaleFactor to always 1. Same
result. And I even tried to always set bounds Origin and bounds Size to
(int) values. Same result.
What do I miss?
Best Regards
--
Lorenzo
email: [EMAIL PROTECTED]
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com
/ scale];
And it worked at any scale. Can't guess why! With 0.001 I don't see any
line. Strange story, it works with zero, with 0.01/1.33 and it doesn't work
with 0.001 / 1.33. Any idea?
Best Regards
--
Lorenzo
email: [EMAIL PROTECTED]
From: Joe Goh [EMAIL PROTECTED]
Date: Fri, 25 Apr 2008
:47 AM, [EMAIL PROTECTED] purportedly said:
On Sat, Apr 19, 2008 at 11:55 PM, Chris Hanson [EMAIL PROTECTED] wrote:
On Apr 19, 2008, at 11:08 AM, Lorenzo Thurman wrote:
I have two NSTableViews, tableA and tableB, each managed by separate
NSArrayControllers. When a selection is made
:47 AM, [EMAIL PROTECTED] purportedly said:
On Sat, Apr 19, 2008 at 11:55 PM, Chris Hanson [EMAIL PROTECTED] wrote:
On Apr 19, 2008, at 11:08 AM, Lorenzo Thurman wrote:
I have two NSTableViews, tableA and tableB, each managed by separate
NSArrayControllers. When a selection is made
I've run into some trouble using revert with NSUserDefaultsController:
It doesn't work. My settings do not revert to their previous settings. I'm
working on a prefs window and what I want to have happen is if a user clicks
the cancel button, any changes made are reverted to their previous setting.
Xcode 3.0, deleted my app's pref file, delete the build
folder, relaunched Xcode, compiled... unsuccessfully.
Also, there is no trace now on my project about icnabcd, nor spotlight finds
anything. Any idea???
Best Regards
--
Lorenzo
email: [EMAIL PROTECTED
On Sat, Apr 19, 2008 at 11:55 PM, Chris Hanson [EMAIL PROTECTED] wrote:
On Apr 19, 2008, at 11:08 AM, Lorenzo Thurman wrote:
I have two NSTableViews, tableA and tableB, each managed by separate
NSArrayControllers. When a selection is made in either table, an
instance
variable is set. I
I have two NSTableViews, tableA and tableB, each managed by separate
NSArrayControllers. When a selection is made in either table, an instance
variable is set. I want to have an NSButton's enabled state to 'YES'
whenever the instance variable is set. I've tried binding the button to the
instance
reports
information about each object on the screen.
What's the best way to do that?
Best Regards
--
Lorenzo
email: [EMAIL PROTECTED]
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments
use it, will my application perform worse on Leopard?
- Is there a way to differentiate part of code by platform? I remember
I saw in some files lines like this
#if MACOSX_DEPLOYMENT_TARGET == MAC_OS_X_VERSION_10_4
#endif
is this correct?
Thanks,
Lorenzo Bevilacqua
I have subsclassed a NSScrollView and overrided the mouseDown: method.
Then I create the MYScrollView programmatically and add it to the window's
contentView. I can quite see it but when I click on it, the method
mouseDown: gets never invoked. What do I miss?
Best Regards
--
Lorenzo
email
I have the string representation of a percentage value, that goes to 6
places beyond the decimal point. Something like this:
64.123456%. I want to round that to 2 places and keep the percent sign at
the end e.g. 64.12% and return it as an NSString. I was playing around with
NSNumberFormatter (in
the original imageSize at 72 dpi or the original imageSize at 240 dpi?
Best Regards
--
Lorenzo
email: [EMAIL PROTECTED]
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact
As I understand, NSShadow works on vectorial paths only.
If so, how can I apply a shadow to a raster image with alpha? The image has
an irregular border with a half-a-transparence. On Photoshop of course this
can be done.
Best Regards
--
Lorenzo
email: [EMAIL PROTECTED
You are right, it worked even with images.
Best Regards
--
Lorenzo
email: [EMAIL PROTECTED]
From: Jean-Daniel Dupas [EMAIL PROTECTED]
Date: Sat, 05 Apr 2008 15:06:22 +0200
To: Lorenzo [EMAIL PROTECTED]
Cc: cocoa-dev@lists.apple.com
Subject: Re: NSShadow on a raster image
Le 5 avr. 08
: 0x r27: 0xb144
r28: 0x r29: 0xffdfc030 r30: 0xa058476c r31: 0x91ef32ec
cr: 0x24044422 xer: 0x2000lr: 0x91ef334c ctr: 0x92f66970
vrsave: 0x
Best Regards
--
Lorenzo
email: [EMAIL PROTECTED]
___
Cocoa-dev
:
(id) kCFBooleanTrue,(id) kCGImageSourceShouldCache,
(id) kCFBooleanTrue,(id) kCGImageSourceShouldAllowFloat,
NULL];
Best Regards
--
Lorenzo
email: [EMAIL PROTECTED]
From: Laurent Cerveau [EMAIL PROTECTED]
Date: Wed, 26 Mar 2008 21:29:45 +0100
adopted the solution posted by Sam, here in the list.
I render the qc composition into an openGLView using a timer.
It works well. I still get some garbage when resizing this view, but I hope
to fix it soon with the reshape and update APIs.
Thanks for your support.
Best Regards
--
Lorenzo
email
too? Any workaround?
Best Regards
--
Lorenzo
email: [EMAIL PROTECTED]
___
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
Thank you Sam,
Your code looks promising. One question, should the renderView be a simple
NSView, a QCView or an NSOpenGLView?
If not a QCView, should I fire a timer each 1/60 sec in order to render with
renderAtTime into the NSView or OpenGLView?
Best Regards
--
Lorenzo
email: [EMAIL PROTECTED
I have two NSTableviews each bound to their own NSArrayControllers. The
tables site side by side in a window and are populated simultaneously. That
works all well and good. The problem I have is that the first row in each
table is selected, but grayed out and clicking on those rows does not fire a
conflict with the QTMovieView methods?
Any idea?
Best Regards
--
Lorenzo
email: [EMAIL PROTECTED]
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators
77 matches
Mail list logo