On 16 June 2012 05:57, Sean P. DeNigris <sean@clipperadams.com> wrote:
"PackageOrganizer default packageOfClass: FileSystemError" returns the category, whether it's a separate package or not. How do I get the mc package?
The only thing I can think of is something like: MCWorkingCopy allInstances detect: [ :e | e packageName beginsWith: aString ] but it seems like there should be a built-in way, and the above is naive e.g. if aString = 'Package', the condition will be true for Package and PackageTests, which is wrong...
yeah.. i hope someday we will have something as simple as following: Class>>package ^ package Class>>packageName ^ self package name etc.. Because the way how it is done today is just a dog's hut scaled to the size of cathedral.
Thanks, Sean
-- View this message in context: http://forum.world.st/Finding-the-package-of-a-class-tp4635070.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
-- Best regards, Igor Stasenko.