Re: /Library/Application Support off limits?

2021-04-20 Thread Flavio Donadio via Cocoa-dev
s data and share it between > users, but I think it isn't the most efficient way. I hadn't thought of a > local server, never had. But I look at / App Support and see data from other > non-Apple apps. and I don't understand why the rest can't eg Adobe, Google >

Re: /Library/Application Support off limits?

2021-04-19 Thread Flavio Donadio via Cocoa-dev
se the shared directory of a > user, the best way would be in / Application Support in .localDomainMask, but > I don't know why some applications can and others cannot (the mine is signed > and notarized). > > > Regards > > El 19/4/21 a las 1:51, Uli Kusterer esc

Re: /Library/Application Support off limits?

2021-04-19 Thread Flavio Donadio via Cocoa-dev
Uli, Yes, you’re right. My bad. If two users (for instance, through remote access or Fast User Switching) open and edit the same file, bad things will happen. Regards, Flavio > Am 18.04.2021 um 21:51 schrieb Uli Kusterer : > > That is actually wrong. It is dangerous to create world-writabl

Re: /Library/Application Support off limits?

2021-04-15 Thread Flavio Donadio via Cocoa-dev
Davidap, You must first understand what kind of data you have and how that data would be shared with users. The “Application Support” folders — both in /Library and in ~/Library (“~” means “current user”) — are meant for files that are needed by the application but shouldn’t be stored in the

Re: Thoughts on Cocoa

2019-10-03 Thread Flavio Donadio via Cocoa-dev
If... ... the new platform-specific APIs are just that: platform-specific; ... there’s a way to integrate Swift code in Objective-C apps (and, I presume, Objective-C++ too); ... the most common complaint is about keeping code cross-platform; Then what is the problem with new, platform-specific

Customizing NSPrintPanel by removing features, not adding

2017-10-17 Thread Flavio Donadio
Hello, all! I have been searching the web and mailing-list archives for the last few days, since Apple’s documentation on the subject is almost non-existant. I created this app that prints to Zebra label printers in their own printing language (ZPL). I am currently using Core Printing to print

Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-30 Thread Flavio Donadio
Alex, It’s about time the moderators kick this Olivia from this list. Anyone who hangs around with the .net and Android guys should be dangerous. Flavio On 30/07/2015, at 16:00, Alex Zavatone wrote: > On Jul 30, 2015, at 9:45 AM, Shane Stanley wrote: > >> FWIW, it's also happening to on at

Re: Core Data with ODBC databases?

2013-10-17 Thread Flavio Donadio
Jens, > I haven’t dug all the way into NSIncrementalStore yet. But the assumption > you’re making is that you can take an architecture that works for a local > single-user database, and transparently make it work over a worldwide network > with lots of users just by [colorful metaphor ahead, n

Re: Core Data with ODBC databases?

2013-10-17 Thread Flavio Donadio
Dru, > [...] if you use CoreData on the server as well, you get into issues where > things are a little more complex. Well, this is a path that I'm pretty much convinced that wouldn't work. Almost everyone on this list told me it would be a bad idea. But it would solve the "two identical mod

Re: Core Data with ODBC databases?

2013-10-17 Thread Flavio Donadio
Dru, I am not sure if I understand you, but here it goes! > Actually, there is no reason CoreData can't be used in this manner, but there > are things that will have to be dealt with outside of CoreData. How do you > deal with two people making changes to the same record concurrently as an >

Re: Core Data with ODBC databases?

2013-10-17 Thread Flavio Donadio
Alex, > Can’t you use NSIncrementalStore to talk with REST services as a backend for > Core Data? I remember seeing some articles on this. That's what AFIncrementalStore/AFRESTClient does. It uses AFNetworking to communicate with the web service: https://github.com/AFNetworking/AFIncremental

Re: Core Data with ODBC databases?

2013-10-16 Thread Flavio Donadio
On 16/10/2013, at 13:11, Andrew Satori wrote: > At the root of things, what I think we are really discussing is a model not > about CoreData, but one about CoreWebServices. Could we build a framework > that let's you model your data in a modeler, and it publishes the model to a > RESTful web

Re: Core Data with ODBC databases?

2013-10-16 Thread Flavio Donadio
y I won't have to re-invent the wheel everytime I develop a new remote-data-driven app. Best regards, Flavio Donadio ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Why is it wrong to have relationships without an inverse in Core Data?

2013-06-24 Thread Flavio Donadio
On 24/06/2013, at 22:01, Graham Cox wrote: > > On 25/06/2013, at 12:49 AM, Flavio Donadio wrote: > >> Rick Mann, I don't understand why you need a separate relationship to >> retrieve the active Child objects. Please, consider doing this: >> >> P

Re: Why is it wrong to have relationships without an inverse in Core Data?

2013-06-24 Thread Flavio Donadio
* Re-sending because of wrong subject line - Sorry! * Hello, people! After reading all this thread and watching it deviate from the problem at hand into a philosophical argument, I think it's time to answer the unanswered question... Rick Mann, I don't understand why you need a separate relat

Re: Cocoa-dev Digest, Vol 10, Issue 388

2013-06-24 Thread Flavio Donadio
Hello, people! After reading all this thread and watching it deviate from the problem at hand into a philosophical argument, I think it's time to answer the unanswered question... Rick Mann, I don't understand why you need a separate relationship to retrieve the active Child objects. Please,

Re: Warning users when editing multiple items

2013-02-06 Thread Flavio Donadio
Graham and Patrick, iTunes does that on commit. If I try to, let's say, add/change/delete the cover image for several tracks, I'm reminded that I'm doing it for multiple items and have a chance to cancel. Also, when you select multiple items and "get info", the fields with different data (tra

Re: Core Data Multiuser

2012-10-09 Thread Flavio Donadio
On 09/10/2012, at 12:10, Alex Zavatone wrote: > 3. If you want to have your GUI respond to changes in the DB, and you have no > method to yap back to the GUI, then seems like you're going to have to poll. > > You might want to consider how to make the basic design work, then plan on > ways that

Re: Core Data Multiuser

2012-10-09 Thread Flavio Donadio
On 09/10/2012, at 11:57, Keary Suska wrote: > This is not an easy problem, although I would say it is more of a business > logic issue than a technical one. Namely, what would be the uncommitted data > policy? Discard all changes? Or commit with a discard fallback (in case of > validation error

Re: Core Data Multiuser

2012-10-09 Thread Flavio Donadio
uct. We can deal with some problems in ways that would not be desirable in commercial software. But, since I'm a Mac user, I want things to be as perfect as they can be Cheers, Flavio > --Original Message-- > From: Flavio Donadio > To: Alex Zavatone > Cc: Cocoa L

Re: Core Data Multiuser

2012-10-08 Thread Flavio Donadio
On 08/10/2012, at 17:56, Alex Zavatone wrote: > Thank you Flavio. Out of curiosity, did you encounter pessimistic vs. > optimistic locking performance/data reliability issue in having many clients > writing to potentially the same places at once? If so, how did each of the > candidate solutio

Re: Core Data Multiuser

2012-10-08 Thread Flavio Donadio
Kyle, I like your points and I considered them. It's been 3 months of hair-pulling and I still have some uncertainty about my choices. But I think I made the best decisions, and here's why... > We still run WO 4.5 to power our own store, but we go through some major > hoops to do so. > > Pers

Re: Core Data Multiuser

2012-10-08 Thread Flavio Donadio
27;ve seen, it's the most straight forward to use, and the most feature-complete framework for consuming RESTful web services. I also looked into AFIncrementalStore and RESTKit. Kudos to Steve Steinitz, Jens Alfke, Chris Hanson and Alexander Spohr for the tips. Cheers, Flavio On 18/07/20

Re: Sandboxing not so bad

2012-09-14 Thread Flavio Donadio
Scott Anguish (The Moderator) and all the people on the list, I am also sick and tired of that, since the arguments usually derail into ranting and pointless discussions. I also don't see any chance of this subject going away in the future, since it's now part of the OS strategy. So, I suggest

Re: gesture

2012-08-06 Thread Flavio Donadio
Luca, The direction is where the swipe ends. UISwipeGestureRecognizerDirectionRight is for left-to-right. Cheers, Flavio On 06/08/2012, at 16:00, cocoa-dev-requ...@lists.apple.com wrote: > Hi All. > Probably my problem is very stupid with a very immediate answer, but I'm very > new using st

Re: Core Data Multiuser

2012-07-18 Thread Flavio Donadio
Steve, I agree with Apple, SQLite, you and every other sensible developer out there: I won't try this! :) Cheers, Flavio On 18/07/2012, at 04:49, Steve Steinitz wrote: > Hi Flavio, > > While Apple, SQLite, myself and any sensible software developer advise > against it, Core Data can run mu

Re: Core Data Multiuser

2012-07-17 Thread Flavio Donadio
Chris, I already took a look at NSIncrementalStore and it seems to solve one of my problems. I am fairly good with PHP, but I could always create a web service with Rails or something else... One of my gripes with using HTTP as the client-server base protocol is the request-response loop. Thi

Re: Core Data Multiuser

2012-07-16 Thread Flavio Donadio
On 16/07/2012, at 18:39, Jens Alfke wrote: > In my experience — and yes I have tried it — using DO between multiple > computers is a nightmare. I know it sounds so simple and appealing, but > that's because it tries to sweep all the hard problems of networking[1] under > the rug. The problems r

Re: Cocoa-dev Digest, Vol 9, Issue 488

2012-07-15 Thread Flavio Donadio
n't seen any progress on the project page for a long time. I can build it for Lion 64-bit, but I feel insecure about the project's future. Best regards, Flavio Donadio --- Codeprint - Soluções em identificação e captura de dados E-mail: fdona...@codeprint.com.br. Tel.: (11) 2119-300

Core Data Multiuser

2012-07-13 Thread Flavio Donadio
Hello, people! I'll bring this subject to surface again. I know it pops here and there from time to time, but I've never seen anything conclusive, besides advice to steer off this idea. For a long time, I have wanted to develop a "pseudo-CRM" software for my small business. It will be used fo

Re: Exporting and Importing CoreData

2011-03-24 Thread Flavio Donadio
Siegfried, I am late in this thread, but I don't understand why you need import/export. Is it just meant for backup purposes or is it a facility for the users to get data from other applications into yours (and out of it)? If it is the second case, why not stick with "delimited text" or "CSV-s

Re: Core data - binding related problem in NSNumberFormatter and NSDatePicker

2010-12-17 Thread Flavio Donadio
mmalc, I meant Movie 13. Cheers, Flavio On 17/12/2010, at 19:24, Flavio Donadio wrote: > mmalc, > > > Lesson learnt, but I took that code directly from Apple. Check Movie 11 on > this page: > > http://developer.apple.com/cocoa/coredatatutorial/index.html >

Re: Core data - binding related problem in NSNumberFormatter and NSDatePicker

2010-12-17 Thread Flavio Donadio
mmalc, Lesson learnt, but I took that code directly from Apple. Check Movie 11 on this page: http://developer.apple.com/cocoa/coredatatutorial/index.html I think the code you suggested would work better and is even more readable. Thanks for the tip! Cheers, Flavio On 12/16/2010, at 23:56

Re: Core data - binding related problem in NSNumberFormatter and NSDatePicker

2010-12-16 Thread Flavio Donadio
Devarshi, These are pretty simple. > It is now working correctly when I am entering the price with $ symbol > prefixed, eg. $123,00 :) > > I think that this is not user intuitive, user may not always know that he/ > she has to prefix dollar symbol. I think it would have been good if: > > 1. I

RE: Moderator - Re: iPad 4.2 (deploy to 3.2.2) error

2010-11-10 Thread Flavio Donadio
Shawn, Nice try, but to download the aforementioned SDK you need to agree to Apple Developer Program terms. One of these terms is to not reveal non-public information. Also, this list is sponsored by Apple. I don't think you should do that here. Cheers, Flavio On 10/11/2010, at 15:54, Shawn

Re: WebView pagination for printing

2010-07-21 Thread Flavio Donadio
t make sense of this, check w3c.org or consult a skilled web designer. > - ensure pagination doesn't split table rows This is easy, but I am not sure if WebKit's implementation applies this property to table-row elements: th, tr {page-break-inside: avoid;} Cheers, Flavio

Re: Adding attributes to NSMutableAttributedString

2010-06-14 Thread Flavio Donadio
Tom, On 14/06/2010, at 16:01, cocoa-dev-requ...@lists.apple.com wrote: > I'm trying to add some attributes to a NSMutableAttributedString using the > code below but only get errors. > > NSMutableAttributedString *string = @"aaa"; Try replacing the line above with:

Re: Simulating Text Input

2010-05-20 Thread Flavio Donadio
ts it is at least not trivial to > get the characters / strings you need... > > Eiko > > > Am 20.05.2010 um 15:55 schrieb Flavio Donadio: > >> Paul and Eiko, >> >> >> I just checked OSXvnc's source code. Their code led me to the right pla

Re: Simulating Text Input

2010-05-20 Thread Flavio Donadio
Paul and Eiko, I just checked OSXvnc's source code. Their code led me to the right place, but it's fairly complex for a beginner (like myself) to learn how to post keyboard events (generate keystrokes or simulating keyboard input). The functions needed for this are in Quartz / Core Graphics. O

Re: Simulating Text Input

2010-05-19 Thread Flavio Donadio
Paul, You're right. I'll check VNC server source later. Thanks for the help. Cheers, Flavio On 19/05/2010, at 16:53, Paul Sanders wrote: >> I am interested in simulating text input (maybe via generating keystrokes), >> but never found an example for that. > > Well VNC must simulate keystro

Re: Simulating Text Input

2010-05-19 Thread Flavio Donadio
Paul, I am interested in simulating text input (maybe via generating keystrokes), but never found an example for that. One example is redirecting input from a serial port to the active application. I tried to do it in the past, but didn't get it to work with Cocoa/ObjC, though I succeeded usi

Re: self = [super init], nil?

2010-05-08 Thread Flavio Donadio
Kyle, Thank Gosh you can't see my face now... I am blushing! Shame on me! I've been doing the wrong thing for ages! Cheers, Flavio On 08/05/2010, at 14:04, Kyle Sluder wrote: > On Sat, May 8, 2010 at 10:00 AM, Flavio Donadio wrote: >> >> - (id)init >>

Re: self = [super init], nil?

2010-05-08 Thread Flavio Donadio
Joanna, You're right. On 08/05/2010, at 11:06, Joanna Carter wrote: > BTW, you should not declare id* as the return type, it should be simply id. > > - (id) init > { > if (self = [super init]) > { >// rest of initialisation > } > > return self; > } I made lots of mistakes in my exam

Re: self = [super init], nil?

2010-05-08 Thread Flavio Donadio
Patrick, I made some mistakes in the code. Wherever I wrote +init (or something similar), I really meant -init. It's an instance method, not a class method. That's what happens when you type code in Mail before having breakfast... Cheers, Flavio On 08/05/2010, at 10:13, Flavio Don

Re: self = [super init], nil?

2010-05-08 Thread Flavio Donadio
Patrick, I don't really know if I am right, because of lack of experience. Please, correct me if I'm wrong, but... Why would anyone write code like that? I mean, if one subclasses NSObject and doesn't override +init, it will return self -- or, maybe, nil -- anyways. So, I would assume that [s

Re: NSSegmentedControl in a toolbar [SOLVED]

2010-05-05 Thread Flavio Donadio
http://www.donadio.com.br/cocoa/SimpleToolbar.zip The NSToolbarItemGroup Class Reference is right, but could have some images to make it clearer. Cheers, Flavio On 05/05/2010, at 16:03, Brian Postow wrote: > On May 5, 2010, at 2:57 PM, Flavio Donadio wrote: > >> I am sure a lot of peo

Re: NSSegmentedControl in a toolbar

2010-05-05 Thread Flavio Donadio
Quincey, Now, that's the kind of answer I needed, even if it doesn't really get me where I want! At least, it stops me from pursuing something too difficult, impossible or undesirable. On 05/05/2010, at 14:17, Quincey Morris wrote: > And that points to your real problem -- what you want *isn'

Re: NSSegmentedControl in a toolbar

2010-05-05 Thread Flavio Donadio
Jerry, I get the idea, but... On 05/05/2010, at 01:42, Jerry Krinock wrote: > I have an NSSearchField in a toolbar. It is a subview of an NSToolbarItem, > not of an NSView. You're right. I forgot the fact that you can only have NSToolbarItems (or subclasses of it) in a NSToolbar. I tried an

Re: NSSegmentedControl in a toolbar

2010-05-04 Thread Flavio Donadio
items with one shared label. > > If instead you set a view on the parent item, you get two labels with one > shared view: > > [group setView:someSegmentedControl]; So, I still can't get it to work. I am reading "Toolbar Programming Topics for Cocoa" to check

NSSegmentedControl in a toolbar

2010-05-04 Thread Flavio Donadio
Fellows, I tried to search the list for a solution to this problem, but maybe I'm not a good searcher. I am trying to use a NSSegmentedControl in a toolbar, capsule-styled, just like in Mail or Preview. I mean: I want each segment to have its own label, like in the "Reply / Reply All / Forwar

Re: Matching the style of a HUD?

2010-05-01 Thread Flavio Donadio
Izak, On 30/04/2010, at 17:48, Izak van Langevelde wrote: > My problem is the difference in style between HUDS and 'normal' windows: I > don't want my document windows to be transparent, I just want them to be > black to match the style of a HUD. White and bright document windows really > don

Re: Cocoa Newbie & MySQL

2010-04-29 Thread Flavio Donadio
Josh, > Unfortunately, the other key piece of information I have left out is that I > also need to tie into some C based APIs in order to drive some large Sun > robotic tape libraries. I also wish to achieve as high a degree of > concurrency as possible in the file moving/compression processes

Re: Cocoa Newbie & MySQL

2010-04-29 Thread Flavio Donadio
Josh, On Apr 28, 2010, at 10:57 AM, Joshua Tidsbury wrote: > The application is essentially a server side app that will manage various > background file moving/archiving processes and store metadata about the files > in a database. The heavy lifting in terms of file analysis and moving the >

Re: How to empty the Trash programmatically?

2010-04-17 Thread Flavio Donadio
People, This my first post on this list, and I am very disappointed that I am chiming into this kind of conversation. This will be my only post on this subject and I think I can make myself very clear. On 16/04/2010, at 14:22, Jayson Adams wrote: > On Apr 16, 2010, at 9:46 AM, Kyle Sluder wro